-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.overlay
42 lines (37 loc) · 1.07 KB
/
app.overlay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright (c) 2024 Olivier DEBON
*
* Modifications on Nordic examples for this application
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN0>; /* P0.02 */
zephyr,resolution = <12>;
};
channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN1>; /* P0.03 */
zephyr,resolution = <12>;
};
};
/ {
zephyr,user {
io-channels = <&adc 0>, <&adc 1>;
};
gpiocustom {
compatible = "gpio-keys";
probe_vdd: gpio1_13 {
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
};
};
};