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>
This commit is contained in:
parent
57728ffb27
commit
df2bb46497
2 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,7 @@ config UART_CONSOLE
|
||||||
|
|
||||||
config UART_CONSOLE_INIT_PRIORITY
|
config UART_CONSOLE_INIT_PRIORITY
|
||||||
int "Init priority"
|
int "Init priority"
|
||||||
|
default 95 if USB_UART_CONSOLE
|
||||||
default 60
|
default 60
|
||||||
depends on UART_CONSOLE
|
depends on UART_CONSOLE
|
||||||
help
|
help
|
||||||
|
|
|
@ -8,3 +8,5 @@ CONFIG_USB_UART_CONSOLE=y
|
||||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||||
CONFIG_UART_LINE_CTRL=y
|
CONFIG_UART_LINE_CTRL=y
|
||||||
CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"
|
CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"
|
||||||
|
|
||||||
|
CONFIG_USB_UART_DTR_WAIT=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue