File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
tests/drivers/adc/adc_api/boards Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ /* SPDX-License-Identifier: Apache-2.0 */
2+
3+ / {
4+ zephyr,user {
5+ io-channels = <&eadc0 6>, <&eadc0 8>;
6+ };
7+ };
8+
9+ &pinctrl {
10+ /* EVB's UNO Pin A0 & A2 for ADC channel 6 & 8 */
11+ eadc0_default: eadc0_default {
12+ group0 {
13+ pinmux = <PB6MFP_EADC0_CH6>, <PB8MFP_EADC0_CH8>;
14+ };
15+ };
16+ };
17+
18+ &eadc0 {
19+ status = "okay";
20+ pinctrl-0 = <&eadc0_default>;
21+ pinctrl-names = "default";
22+ #address-cells = <1>;
23+ #size-cells = <0>;
24+
25+ channel@6 {
26+ reg = <6>;
27+ zephyr,gain = "ADC_GAIN_1";
28+ zephyr,reference = "ADC_REF_INTERNAL";
29+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
30+ zephyr,resolution = <10>;
31+ };
32+
33+ channel@8 {
34+ reg = <8>;
35+ zephyr,gain = "ADC_GAIN_1";
36+ zephyr,reference = "ADC_REF_INTERNAL";
37+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
38+ zephyr,resolution = <10>;
39+ };
40+ };
You can’t perform that action at this time.
0 commit comments