File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
samples/drivers/adc/adc_sequence/boards Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ CONFIG_SEQUENCE_RESOLUTION=12
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 BayLibre, SAS
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #include <zephyr/dt-bindings/adc/adc.h>
8
+
9
+ / {
10
+ aliases {
11
+ adc0 = &adc0;
12
+ };
13
+ };
14
+
15
+ &adc0 {
16
+ status = "okay";
17
+
18
+ #address-cells = <1>;
19
+ #size-cells = <0>;
20
+
21
+ channel@0 {
22
+ reg = <0>;
23
+ zephyr,gain = "ADC_GAIN_1";
24
+ zephyr,reference = "ADC_REF_VDD_1";
25
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
26
+ };
27
+
28
+ channel@2 {
29
+ reg = <2>;
30
+ zephyr,gain = "ADC_GAIN_1";
31
+ zephyr,reference = "ADC_REF_VDD_1";
32
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
33
+ };
34
+
35
+ channel@4 {
36
+ reg = <4>;
37
+ zephyr,gain = "ADC_GAIN_1";
38
+ zephyr,reference = "ADC_REF_VDD_1";
39
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
40
+ };
41
+
42
+ channel@8 {
43
+ reg = <8>;
44
+ zephyr,gain = "ADC_GAIN_1";
45
+ zephyr,reference = "ADC_REF_VDD_1";
46
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
47
+ };
48
+ };
You can’t perform that action at this time.
0 commit comments