Skip to content

Commit 3da2291

Browse files
committed
tests: drivers: adc: adc_api: add overlay for nucleo_c092rc
Add an overlay to use adc1 channel 0 (on PA0) for testing. Signed-off-by: Thomas Stranger <[email protected]>
1 parent b98cc80 commit 3da2291

File tree

1 file changed

+26
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)