sampes: shell: remove usage of CONFIG_USB_UART_CONSOLE
Remove option CONFIG_USB_UART_CONSOLE where it has no influence or enable CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR without taking a detour through CONFIG_USB_UART_CONSOLE. Check the compatibility of chosen property instead of usage of CONFIG_USB_UART_CONSOLE option. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
c77903996b
commit
5315c285cc
3 changed files with 2 additions and 3 deletions
|
@ -29,7 +29,6 @@ CONFIG_USB_DEVICE_PID=0x1234
|
|||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC SensorTile.box"
|
||||
|
||||
CONFIG_USB_UART_CONSOLE=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_UART_LINE_CTRL=y
|
||||
CONFIG_CBPRINTF_FP_SUPPORT=y
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_USB_DEVICE_PRODUCT="Zephyr USB shell sample"
|
||||
CONFIG_USB_UART_CONSOLE=y
|
||||
CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y
|
||||
CONFIG_UART_LINE_CTRL=y
|
||||
CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51
|
||||
|
|
|
@ -345,7 +345,7 @@ void main(void)
|
|||
login_init();
|
||||
}
|
||||
|
||||
#if defined(CONFIG_USB_UART_CONSOLE)
|
||||
#if DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_shell_uart), zephyr_cdc_acm_uart)
|
||||
const struct device *dev;
|
||||
uint32_t dtr = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue