File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
tests/drivers/adc/adc_api/boards Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * SPDX-License-Identifier: Apache-2.0
3+ *
4+ * Copyright (c) 2025 STMicroelectronics
5+ */
6+
7+ / {
8+ zephyr,user {
9+ /* adjust channel number according to pinmux in board.dts */
10+ io-channels = <&adc4 7>, <&adc4 8>;
11+ };
12+ };
13+
14+ &adc4 {
15+ pinctrl-0 = <&adc4_in7_pa2 &adc4_in8_pa1>;
16+ #address-cells = <1>;
17+ #size-cells = <0>;
18+
19+ channel@7 {
20+ reg = <7>;
21+ zephyr,gain = "ADC_GAIN_1";
22+ zephyr,reference = "ADC_REF_INTERNAL";
23+ zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
24+ zephyr,resolution = <12>;
25+ };
26+
27+ channel@8 {
28+ reg = <8>;
29+ zephyr,gain = "ADC_GAIN_1";
30+ zephyr,reference = "ADC_REF_INTERNAL";
31+ zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
32+ zephyr,resolution = <12>;
33+ };
34+ };
You can’t perform that action at this time.
0 commit comments