Skip to content

Commit 2a647c8

Browse files
raveiousfabiobaltieri
authored andcommitted
board: Fixing ADC API tests for W5500_EVB_PICO.
When duplicating the rpi_pico board, I had missed this test file. Signed-off-by: Ian Wakely <[email protected]>
1 parent c2266dd commit 2a647c8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2023 Benjamin Björnsson <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
io-channels = <&adc 0>, <&adc 1>;
10+
};
11+
};
12+
13+
&adc {
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
channel@0 {
18+
reg = <0>;
19+
zephyr,gain = "ADC_GAIN_1";
20+
zephyr,reference = "ADC_REF_INTERNAL";
21+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
22+
zephyr,resolution = <12>;
23+
};
24+
25+
channel@1 {
26+
reg = <1>;
27+
zephyr,gain = "ADC_GAIN_1";
28+
zephyr,reference = "ADC_REF_INTERNAL";
29+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
30+
zephyr,resolution = <12>;
31+
};
32+
};

0 commit comments

Comments
 (0)