Commit 49a48a44 authored by Johann Fischer's avatar Johann Fischer Committed by Chris Friedt
Browse files

tests: uart_basic_api: use new USB device stack

Use new USB device stack.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 891e700c
Loading
Loading
Loading
Loading
+3 −2
Changes for tests/drivers/uart/uart_basic_api/overlay-usb.conf: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
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
+1 −2
Changes for tests/drivers/uart/uart_basic_api/src/main.c: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
 * @}
 */

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

#ifdef CONFIG_SHELL
@@ -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;
	}

+1 −1
Changes for tests/drivers/uart/uart_basic_api/testcase.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,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: