Skip to content

Commit c839bde

Browse files
committed
tests: uart_basic_api: use generic CDC ACM shield
Remove CDC ACM UART devicetree and config overlay, and explicit USB support initialization in favor of generic CDC ACM shield. For console support via USB CDC ACM, this example is to be built as follows: west build -b reel_board tests/drivers/uart/uart_basic_api -- -DSHIELD=cdc_acm_console Signed-off-by: Johann Fischer <[email protected]>
1 parent 7cdaf32 commit c839bde

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

tests/drivers/uart/uart_basic_api/overlay-usb.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/drivers/uart/uart_basic_api/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void test_main(void)
6363
uint32_t dtr = 0;
6464

6565
dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
66-
if (!device_is_ready(dev) || usb_enable(NULL)) {
66+
if (!device_is_ready(dev)) {
6767
return;
6868
}
6969

tests/drivers/uart/uart_basic_api/testcase.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ tests:
2121
integration_platforms:
2222
- mps2_an385
2323
drivers.uart.basic_api.cdc_acm:
24-
extra_args: OVERLAY_CONFIG="overlay-usb.conf"
25-
DTC_OVERLAY_FILE="usb.overlay"
24+
extra_args: SHIELD="cdc_acm_console"
2625
tags: drivers usb
2726
filter: CONFIG_UART_CONSOLE
2827
depends_on: usb_device

tests/drivers/uart/uart_basic_api/usb.overlay

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)