samples: drivers: dac: add gd32f450i_eval board
DAC sample support gd32f450i_eval board. Signed-off-by: HaiLong Yang <cameledyang@pm.me>
This commit is contained in:
parent
b5dabf5fb5
commit
ff9d967832
3 changed files with 27 additions and 0 deletions
|
@ -176,6 +176,19 @@ built and executed for the :ref:`bl5340_dvk` as follows:
|
||||||
|
|
||||||
DAC output is available on pin 1 of the MCP4725.
|
DAC output is available on pin 1 of the MCP4725.
|
||||||
|
|
||||||
|
Building and Running for GD32450I-EVAL
|
||||||
|
======================================
|
||||||
|
The sample can be built and executed for the
|
||||||
|
:ref:`gd32f450i_eval` as follows:
|
||||||
|
|
||||||
|
.. zephyr-app-commands::
|
||||||
|
:zephyr-app: samples/drivers/dac
|
||||||
|
:board: gd32f450i_eval
|
||||||
|
:goals: build flash
|
||||||
|
:compact:
|
||||||
|
|
||||||
|
Bridge the JP23 to DAC with the jumper cap, then DAC output will available on JP7.
|
||||||
|
|
||||||
Sample output
|
Sample output
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
13
samples/drivers/dac/boards/gd32f450i_eval.overlay
Normal file
13
samples/drivers/dac/boards/gd32f450i_eval.overlay
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2021 BrainCo Inc.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
zephyr,user {
|
||||||
|
dac = <&dac>;
|
||||||
|
dac-channel-id = <0>;
|
||||||
|
dac-resolution = <12>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -7,6 +7,7 @@ tests:
|
||||||
arduino_zero frdm_k22f frdm_k64f nucleo_f091rc nucleo_g071rb nucleo_g431rb
|
arduino_zero frdm_k22f frdm_k64f nucleo_f091rc nucleo_g071rb nucleo_g431rb
|
||||||
nucleo_l073rz nucleo_l152re twr_ke18f nucleo_f767zi nucleo_f429zi bl652_dvk
|
nucleo_l073rz nucleo_l152re twr_ke18f nucleo_f767zi nucleo_f429zi bl652_dvk
|
||||||
bl653_dvk bl654_dvk bl5340_dvk_cpuapp stm32f3_disco stm32l562e_dk nucleo_l552ze_q
|
bl653_dvk bl654_dvk bl5340_dvk_cpuapp stm32f3_disco stm32l562e_dk nucleo_l552ze_q
|
||||||
|
gd32f450i_eval
|
||||||
depends_on: dac
|
depends_on: dac
|
||||||
harness: console
|
harness: console
|
||||||
harness_config:
|
harness_config:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue