Skip to content

Commit 1bd34d8

Browse files
talih0carlescufi
authored andcommitted
samples: drivers: adc: Add xmc45_relax_kit overlay
Adds xmc45_relax_kit overlay to run the sample. Signed-off-by: Andriy Gelman <[email protected]>
1 parent 83da959 commit 1bd34d8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2022 Andriy Gelman <[email protected]>
5+
*/
6+
7+
#include <zephyr/dt-bindings/adc/adc.h>
8+
9+
/ {
10+
zephyr,user {
11+
io-channels = <&adc0 0>; /* P14.0 */
12+
};
13+
};
14+
15+
&adc0 {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
channel@0 {
20+
reg = <0>;
21+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
22+
zephyr,gain = "ADC_GAIN_1";
23+
zephyr,reference = "ADC_REF_INTERNAL";
24+
zephyr,resolution = <12>;
25+
};
26+
status = "okay";
27+
};

0 commit comments

Comments
 (0)