We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f28a8d commit 6a8a27eCopy full SHA for 6a8a27e
samples/drivers/adc/boards/gd32a503v_eval.overlay
@@ -0,0 +1,27 @@
1
+/*
2
+ * SPDX-License-Identifier: Apache-2.0
3
+ *
4
+ * Copyright (c) 2023 YuLong Yao <[email protected]>
5
+ */
6
+
7
+#include <zephyr/dt-bindings/adc/adc.h>
8
9
+/ {
10
+ zephyr,user {
11
+ /* adjust channel number according to pinmux in board.dts */
12
+ io-channels = <&adc0 1>;
13
+ };
14
+};
15
16
+&adc0 {
17
+ #address-cells = <1>;
18
+ #size-cells = <0>;
19
20
+ channel@1 {
21
+ reg = <1>;
22
+ zephyr,gain = "ADC_GAIN_1";
23
+ zephyr,reference = "ADC_REF_INTERNAL";
24
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25
+ zephyr,resolution = <12>;
26
27
0 commit comments