Skip to content
Permalink
Browse files

usb: console: Initialize USB console after USB Device stack

It does make sense to initialize USB console after USB Device stack.
Note that the value is selected only if we specify USB_UART_CONSOLE
in prj.conf, not in menuconfig afterwards.

Fixes #16518

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and carlescufi committed Jun 4, 2019
1 parent 57728ff commit df2bb46497ae428a1939118d522c63962609f9d8
Showing with 3 additions and 0 deletions.
  1. +1 −0 drivers/console/Kconfig
  2. +2 −0 samples/subsys/usb/console/prj.conf
@@ -53,6 +53,7 @@ config UART_CONSOLE

config UART_CONSOLE_INIT_PRIORITY
int "Init priority"
default 95 if USB_UART_CONSOLE
default 60
depends on UART_CONSOLE
help
@@ -8,3 +8,5 @@ CONFIG_USB_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_LINE_CTRL=y
CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"

CONFIG_USB_UART_DTR_WAIT=y

0 comments on commit df2bb46

Please sign in to comment.
You can’t perform that action at this time.