Skip to content

Commit 2862ed1

Browse files
kbidanidkalowsk
authored andcommitted
tests: drivers: adc: adc_api: update adc_api test
-add nucleo_u385rg_q overlays files for testbench purpose. - add platform_exclude property to skip test on boards with little ram size. Signed-off-by: Khaoula Bidani <[email protected]>
1 parent f568b0d commit 2862ed1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-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) 2025 STMicroelectronics
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
/* adjust channel number according to pinmux in board.dts */
10+
io-channels = <&adc1 1>;
11+
};
12+
};
13+
14+
&adc1 {
15+
#address-cells = <1>;
16+
#size-cells = <0>;
17+
18+
channel@1 {
19+
reg = <1>;
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+
};

tests/drivers/adc/adc_api/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ tests:
5151
- nucleo_l152re
5252
- nucleo_l476rg
5353
- nucleo_u083rc
54+
- nucleo_u385rg_q
5455
- nucleo_u575zi_q
5556
- nucleo_wb55rg
5657
- nucleo_wba55cg

0 commit comments

Comments
 (0)