Skip to content

Commit

Permalink
samples: drivers: adc_sequence: Add lp_em_cc2340r5 DT overlay
Browse files Browse the repository at this point in the history
Add LP-EM-CC2340R5 board support to ADC sample.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
  • Loading branch information
jpanisbl committed Mar 4, 2025
1 parent d6de317 commit 141167b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_SEQUENCE_RESOLUTION=12
34 changes: 34 additions & 0 deletions samples/drivers/adc/adc_sequence/boards/lp_em_cc2340r5.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2024 BayLibre, SAS
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/adc/adc.h>

/ {
aliases {
adc0 = &adc0;
};
};

&adc0 {
status = "okay";

#address-cells = <1>;
#size-cells = <0>;

channel@2 {
reg = <2>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_VDD_1";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
};

channel@8 {
reg = <8>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_VDD_1";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
};
};

0 comments on commit 141167b

Please sign in to comment.