Skip to content

Commit a2cb852

Browse files
marwaiehm-stkartben
authored andcommitted
tests: drivers: adc: adc_api: update adc_api test
Add nucleo_wba65ri overlay file Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent a60d774 commit a2cb852

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2025 STMicroelectronics
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
/* adjust channel number according to pinmux in board.dts */
10+
io-channels = <&adc4 7>, <&adc4 8>;
11+
};
12+
};
13+
14+
&adc4 {
15+
pinctrl-0 = <&adc4_in7_pa2 &adc4_in8_pa1>;
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
channel@7 {
20+
reg = <7>;
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+
27+
channel@8 {
28+
reg = <8>;
29+
zephyr,gain = "ADC_GAIN_1";
30+
zephyr,reference = "ADC_REF_INTERNAL";
31+
zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
32+
zephyr,resolution = <12>;
33+
};
34+
};

tests/drivers/adc/adc_api/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ tests:
4949
- nucleo_u575zi_q
5050
- nucleo_wb55rg
5151
- nucleo_wba55cg
52+
- nucleo_wba65ri
5253
- nucleo_wl55jc
5354
- stm32f3_disco
5455
- stm32h573i_dk

0 commit comments

Comments
 (0)