Skip to content

Commit 2a33204

Browse files
committed
samples: drivers: adc_sequence: Add lp_em_cc2340r5 DT overlay
Add LP-EM-CC2340R5 board support to ADC sample. Signed-off-by: Julien Panis <[email protected]>
1 parent c919bdf commit 2a33204

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SEQUENCE_RESOLUTION=12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (c) 2024 BayLibre, SAS
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/adc/adc.h>
8+
9+
/ {
10+
aliases {
11+
adc0 = &adc0;
12+
};
13+
};
14+
15+
&adc0 {
16+
status = "okay";
17+
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
21+
channel@2 {
22+
reg = <2>;
23+
zephyr,gain = "ADC_GAIN_1";
24+
zephyr,reference = "ADC_REF_VDD_1";
25+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26+
};
27+
28+
channel@8 {
29+
reg = <8>;
30+
zephyr,gain = "ADC_GAIN_1";
31+
zephyr,reference = "ADC_REF_VDD_1";
32+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
33+
};
34+
};

0 commit comments

Comments
 (0)