Skip to content

Commit 8ce99a8

Browse files
sarthsmartcarlescufi
authored andcommitted
samples/drivers: nucleo_f767zi: Enable DAC sample application.
This commit enables DAC sample application for nucleo_f767zi. Signed-off-by: Sidhdharth Yadav <[email protected]>
1 parent ffd89a0 commit 8ce99a8

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

samples/drivers/dac/README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ The sample can be built and executed for the
3535
:goals: build flash
3636
:compact:
3737

38+
Building and Running for ST Nucleo F767ZI
39+
=========================================
40+
The sample can be built and executed for the
41+
:ref:`nucleo_f767zi_board` as follows:
42+
43+
.. zephyr-app-commands::
44+
:zephyr-app: samples/drivers/dac
45+
:board: nucleo_f767zi
46+
:goals: build flash
47+
:compact:
48+
3849
Building and Running for NXP TWR-KE18F
3950
======================================
4051
The sample can be built and executed for the :ref:`twr_ke18f` as

samples/drivers/dac/sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tests:
55
tags: DAC
66
platform_allow: |
77
arduino_zero frdm_k22f frdm_k64f nucleo_f091rc nucleo_g071rb nucleo_g431rb
8-
nucleo_l073rz nucleo_l152re twr_ke18f
8+
nucleo_l073rz nucleo_l152re twr_ke18f nucleo_f767zi
99
depends_on: dac
1010
harness: console
1111
harness_config:

samples/drivers/dac/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
defined(CONFIG_BOARD_NUCLEO_G071RB) || \
1313
defined(CONFIG_BOARD_NUCLEO_G431RB) || \
1414
defined(CONFIG_BOARD_NUCLEO_L073RZ) || \
15-
defined(CONFIG_BOARD_NUCLEO_L152RE)
15+
defined(CONFIG_BOARD_NUCLEO_L152RE) || \
16+
defined(CONFIG_BOARD_NUCLEO_F767ZI)
1617
#define DAC_DEVICE_NAME DT_LABEL(DT_NODELABEL(dac1))
1718
#define DAC_CHANNEL_ID 1
1819
#define DAC_RESOLUTION 12

0 commit comments

Comments
 (0)