Skip to content

Commit 561c894

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 a92896b commit 561c894

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

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

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

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* @}
1212
*/
1313

14-
#include <usb/usb_device.h>
1514
#include "test_uart.h"
1615

1716
#ifdef CONFIG_SHELL
@@ -63,7 +62,7 @@ void test_main(void)
6362
uint32_t dtr = 0;
6463

6564
dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
66-
if (!device_is_ready(dev) || usb_enable(NULL)) {
65+
if (!device_is_ready(dev)) {
6766
return;
6867
}
6968

tests/drivers/uart/uart_basic_api/testcase.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ tests:
1919
filter: CONFIG_UART_CONSOLE
2020
harness: keyboard
2121
drivers.uart.cdc_acm:
22-
extra_args: OVERLAY_CONFIG="overlay-usb.conf"
23-
DTC_OVERLAY_FILE="usb.overlay"
22+
extra_args: SHIELD="cdc_acm_console"
2423
tags: drivers usb
2524
filter: CONFIG_UART_CONSOLE
2625
depends_on: usb_device

tests/drivers/uart/uart_basic_api/usb.overlay

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

0 commit comments

Comments
 (0)