Skip to content

Commit fb02eea

Browse files
committed
tests: uart_basic_api: use new USB device stack
Use new USB device stack. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
1 parent 9212454 commit fb02eea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
CONFIG_USB_DEVICE_STACK=y
2-
CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC ACM UART"
1+
CONFIG_USB_DEVICE_STACK_NEXT=y
2+
CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
3+
CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Zephyr CDC ACM UART"
34
CONFIG_UART_LINE_CTRL=y
45
CONFIG_TEST_LOGGING_DEFAULTS=n

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 <zephyr/usb/usb_device.h>
1514
#include "test_uart.h"
1615

1716
#ifdef CONFIG_SHELL
@@ -52,7 +51,7 @@ void *uart_basic_setup(void)
5251
uint32_t dtr = 0;
5352

5453
dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
55-
if (!device_is_ready(dev) || usb_enable(NULL)) {
54+
if (!device_is_ready(dev)) {
5655
return NULL;
5756
}
5857

tests/drivers/uart/uart_basic_api/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ tests:
4747
- drivers
4848
- usb
4949
filter: CONFIG_UART_CONSOLE
50-
depends_on: usb_device
50+
depends_on: usbd
5151
harness: keyboard
5252
drivers.uart.basic_api.shell_ke17z9_uart:
5353
tags:

0 commit comments

Comments
 (0)