Skip to content

Commit 246803c

Browse files
hakehuangaescolar
authored andcommitted
tests: adc_api: fix build issue
after HWv2 the board overlay need to be dedicated Signed-off-by: Hake Huang <[email protected]>
1 parent 36ab337 commit 246803c

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_ADC_ASYNC=n
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2022 Wolter HV <[email protected]>
3+
* Copyright (c) 2023 Benjamin Björnsson <[email protected]>
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
/ {
9+
zephyr,user {
10+
/* adjust channel number according to pinmux in board.dts */
11+
io-channels = <&adc0 0>, <&adc0 1>;
12+
};
13+
};
14+
15+
&adc0 {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
status = "okay";
19+
20+
channel@0 {
21+
reg = <0>;
22+
zephyr,gain = "ADC_GAIN_1";
23+
zephyr,reference = "ADC_REF_INTERNAL";
24+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25+
zephyr,resolution = <12>;
26+
};
27+
28+
channel@1 {
29+
reg = <1>;
30+
zephyr,gain = "ADC_GAIN_1";
31+
zephyr,reference = "ADC_REF_INTERNAL";
32+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
33+
zephyr,resolution = <12>;
34+
};
35+
};

0 commit comments

Comments
 (0)