Skip to content

Commit f5aa62f

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

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
zephyr,user {
11+
io-channels = <&adc0 0x2>;
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,vref-mv = <3300>;
26+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
27+
zephyr,resolution = <12>;
28+
};
29+
};

0 commit comments

Comments
 (0)