From f102750f7ea98ae6f40cad8ac0afa748b103043d Mon Sep 17 00:00:00 2001 From: Affrin Pinhero Date: Thu, 24 Jun 2021 16:10:36 +0530 Subject: [PATCH] samples/drivers: stm32l496g_disco: Enable ADC Sample This commit enables ADC sample application to build and run on stm32l496g_disco platform. Signed-off-by: Affrin Pinhero --- samples/drivers/adc/boards/stm32l496g_disco.overlay | 9 +++++++++ samples/drivers/adc/sample.yaml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 samples/drivers/adc/boards/stm32l496g_disco.overlay diff --git a/samples/drivers/adc/boards/stm32l496g_disco.overlay b/samples/drivers/adc/boards/stm32l496g_disco.overlay new file mode 100644 index 00000000000..2070247c4fe --- /dev/null +++ b/samples/drivers/adc/boards/stm32l496g_disco.overlay @@ -0,0 +1,9 @@ +/* Copyright (c) 2021 STMicroelectronics + SPDX-License-Identifier: Apache-2.0 */ + + / { + zephyr,user { + /* adjust channel number according to pinmux in board.dts */ + io-channels = <&adc1 2>; + }; +}; diff --git a/samples/drivers/adc/sample.yaml b/samples/drivers/adc/sample.yaml index 71f0ce72ef1..419592a2f12 100644 --- a/samples/drivers/adc/sample.yaml +++ b/samples/drivers/adc/sample.yaml @@ -5,7 +5,7 @@ tests: tags: ADC depends_on: adc platform_allow: nucleo_l073rz disco_l475_iot1 cc3220sf_launchxl - cc3235sf_launchxl + cc3235sf_launchxl stm32l496g_disco harness: console timeout: 10 harness_config: