Skip to content

Commit 9e4968b

Browse files
jfischer-nocarlescufi
authored andcommitted
boards: bl654_usb: use CDC ACM UART as serial backend
This patch adds new board specific Kconfig option BL654_USB_SERIAL_BACKEND_CDCACM, which is enabled by default except USB_DEVICE_BLUETOOTH class is used. Applications that depend on usb_enable() or do not require composite configuration cannot be used with BL654 USB board without user intervention. Signed-off-by: Johann Fischer <[email protected]>
1 parent 1e3f7ca commit 9e4968b

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

boards/arm/bl654_usb/Kconfig.defconfig

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,27 @@ config FLASH_LOAD_OFFSET
2323
default 0x1000
2424
depends on !USE_DT_CODE_PARTITION
2525

26-
if USB_DEVICE_STACK
26+
config USB_CDC_ACM
27+
default n if USB_DEVICE_BLUETOOTH
2728

28-
config UART_LINE_CTRL
29+
config BL654_USB_SERIAL_BACKEND_CDCACM
30+
bool "Use CDC ACM UART as backend for BL654 USB adapter"
31+
default y if !USB_DEVICE_BLUETOOTH
32+
help
33+
Use CDC ACM UART as backend for console or shell.
34+
35+
if BL654_USB_SERIAL_BACKEND_CDCACM
36+
37+
config UART_CONSOLE
38+
default CONSOLE
39+
40+
config USB_DEVICE_INITIALIZE_AT_BOOT
2941
default y
3042

31-
endif # USB_DEVICE_STACK
43+
config SHELL_BACKEND_SERIAL_CHECK_DTR
44+
default SHELL
45+
46+
endif #BL654_USB_SERIAL_BACKEND_CDCACM
3247

3348
if IEEE802154
3449

0 commit comments

Comments
 (0)