File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
tests/drivers/adc/adc_api/boards Expand file tree Collapse file tree 1 file changed +32
-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_in6_pa3 &adc4_in7_pa2 &adc4_in8_pa1>;
16
+
17
+ channel@7 {
18
+ reg = <7>;
19
+ zephyr,gain = "ADC_GAIN_1";
20
+ zephyr,reference = "ADC_REF_INTERNAL";
21
+ zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
22
+ zephyr,resolution = <12>;
23
+ };
24
+
25
+ channel@8 {
26
+ reg = <8>;
27
+ zephyr,gain = "ADC_GAIN_1";
28
+ zephyr,reference = "ADC_REF_INTERNAL";
29
+ zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
30
+ zephyr,resolution = <12>;
31
+ };
32
+ };
You can’t perform that action at this time.
0 commit comments