File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
samples/subsys/shell/shell_module Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- CONFIG_USB_DEVICE_STACK=y
2- CONFIG_USB_DEVICE_PRODUCT="Zephyr USB shell sample"
1+ CONFIG_USB_DEVICE_STACK_NEXT=y
2+ CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
3+ CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Zephyr USB shell sample"
34CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y
4- CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF =y
5+ CONFIG_USBD_CDC_ACM_LOG_LEVEL_OFF =y
56CONFIG_UART_LINE_CTRL=y
6- CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
7+ CONFIG_LOG_DEFAULT_LEVEL=1
78
89# POSIX_TIMERS requires an embedded C library while the native USB driver is incompatible with it.
910# So let's disable it. Once USB_NATIVE_POSIX supports embedded C libraries this can be removed.
Original file line number Diff line number Diff line change 1515 - native_sim
1616 - intel_socfpga_agilex5_socdk
1717 sample.shell.shell_module.usb :
18- depends_on : usb_device
18+ depends_on : usbd
1919 tags :
2020 - shell
2121 - usb
2525 - EXTRA_CONF_FILE="overlay-usb.conf"
2626 - DTC_OVERLAY_FILE="usb.overlay"
2727 integration_platforms :
28- - native_sim
28+ - frdm_k64f
2929 sample.shell.shell_module.minimal :
3030 filter : CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart")
3131 tags : shell
Original file line number Diff line number Diff line change 1010#include <zephyr/logging/log.h>
1111#include <stdlib.h>
1212#include <zephyr/drivers/uart.h>
13- #include <zephyr/usb/usb_device.h>
1413#include <ctype.h>
1514
1615#ifdef CONFIG_ARCH_POSIX
@@ -378,7 +377,7 @@ int main(void)
378377 uint32_t dtr = 0 ;
379378
380379 dev = DEVICE_DT_GET (DT_CHOSEN (zephyr_shell_uart ));
381- if (!device_is_ready (dev ) || usb_enable ( NULL ) ) {
380+ if (!device_is_ready (dev )) {
382381 return 0 ;
383382 }
384383
You can’t perform that action at this time.
0 commit comments