From c7397f7a6d936b91308a8a0d195efed0057639ca Mon Sep 17 00:00:00 2001 From: Sidhdharth Yadav Date: Thu, 1 Jul 2021 16:22:07 +0530 Subject: [PATCH] samples: drivers: nucleo_l552ze_q: Configuring DAC application This commit configures DAC sample application using overlay to build and run on nucleo_l552ze_q platform. This has been tested in nucleo_l552ze_q platform. Signed-off-by: Sidhdharth Yadav --- samples/drivers/dac/README.rst | 11 +++++++++++ samples/drivers/dac/boards/nucleo_l552ze_q.overlay | 7 +++++++ samples/drivers/dac/sample.yaml | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 samples/drivers/dac/boards/nucleo_l552ze_q.overlay diff --git a/samples/drivers/dac/README.rst b/samples/drivers/dac/README.rst index 0e7647f14e5..e0a54990f09 100644 --- a/samples/drivers/dac/README.rst +++ b/samples/drivers/dac/README.rst @@ -83,6 +83,17 @@ The sample can be built and executed for the :goals: build flash :compact: +Building and Running for ST Nucleo L552ZE Q +=========================================== +The sample can be built and executed for the +:ref:`nucleo_l552ze_q_board` as follows: + +.. zephyr-app-commands:: + :zephyr-app: samples/drivers/dac + :board: nucleo_l552ze_q + :goals: build flash + :compact: + Building and Running for NXP TWR-KE18F ====================================== The sample can be built and executed for the :ref:`twr_ke18f` as diff --git a/samples/drivers/dac/boards/nucleo_l552ze_q.overlay b/samples/drivers/dac/boards/nucleo_l552ze_q.overlay new file mode 100644 index 00000000000..688d9868776 --- /dev/null +++ b/samples/drivers/dac/boards/nucleo_l552ze_q.overlay @@ -0,0 +1,7 @@ +/ { + zephyr,user { + dac = <&dac1>; + dac-channel-id = <1>; + dac-resolution = <12>; + }; +}; diff --git a/samples/drivers/dac/sample.yaml b/samples/drivers/dac/sample.yaml index 7cf1ec2e51b..5375038b4d2 100644 --- a/samples/drivers/dac/sample.yaml +++ b/samples/drivers/dac/sample.yaml @@ -6,7 +6,7 @@ tests: platform_allow: | arduino_zero frdm_k22f frdm_k64f nucleo_f091rc nucleo_g071rb nucleo_g431rb nucleo_l073rz nucleo_l152re twr_ke18f nucleo_f767zi nucleo_f429zi bl652_dvk - bl653_dvk bl654_dvk bl5340_dvk_cpuapp stm32f3_disco stm32l562e_dk + bl653_dvk bl654_dvk bl5340_dvk_cpuapp stm32f3_disco stm32l562e_dk nucleo_l552ze_q depends_on: dac harness: console harness_config: