Skip to content

Commit 0282f57

Browse files
57300kartben
authored andcommitted
tests: drivers: adc: adc_api: Add overlay for nucleo_f072rb
It's a copy of `nucleo_f070rb.overlay`. Signed-off-by: Grzegorz Swiderski <[email protected]>
1 parent ef1b3bc commit 0282f57

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2023 STMicroelectronics
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
/* adjust channel number according to pinmux in board.dts */
10+
io-channels = <&adc1 0>;
11+
};
12+
};
13+
14+
&adc1 {
15+
#address-cells = <1>;
16+
#size-cells = <0>;
17+
18+
channel@0 {
19+
reg = <0>;
20+
zephyr,gain = "ADC_GAIN_1";
21+
zephyr,reference = "ADC_REF_INTERNAL";
22+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
23+
zephyr,resolution = <12>;
24+
};
25+
};

0 commit comments

Comments
 (0)