Skip to content

Commit

Permalink
tests: uart_basic_api: use new USB device stack
Browse files Browse the repository at this point in the history
Use new USB device stack.

Signed-off-by: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no committed Nov 25, 2024
1 parent f3e2267 commit de242a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/drivers/uart/uart_basic_api/overlay-usb.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC ACM UART"
CONFIG_USB_DEVICE_STACK_NEXT=y
CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Zephyr CDC ACM UART"
CONFIG_UART_LINE_CTRL=y
CONFIG_TEST_LOGGING_DEFAULTS=n
3 changes: 1 addition & 2 deletions tests/drivers/uart/uart_basic_api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @}
*/

#include <zephyr/usb/usb_device.h>
#include "test_uart.h"

#ifdef CONFIG_SHELL
Expand Down Expand Up @@ -52,7 +51,7 @@ void *uart_basic_setup(void)
uint32_t dtr = 0;

dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
if (!device_is_ready(dev) || usb_enable(NULL)) {
if (!device_is_ready(dev)) {
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/drivers/uart/uart_basic_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tests:
- drivers
- usb
filter: CONFIG_UART_CONSOLE
depends_on: usb_device
depends_on: usbd
harness: keyboard
drivers.uart.basic_api.shell_ke17z9_uart:
tags:
Expand Down

0 comments on commit de242a5

Please sign in to comment.