-
Notifications
You must be signed in to change notification settings - Fork 8.2k
boards: bl654_usb: use CDC ACM UART as serial backend #42371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards: bl654_usb: use CDC ACM UART as serial backend #42371
Conversation
subsys/usb/usb_device.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need this if statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(⊙.☉)7, probably c&p
|
This doesn't solve the issue if users still need to supply a random Kconfig when building projects. #39987 fixes this without needing user intervention and providing an easy user experience |
According to my understanding it is not possible and I have tried to explain it to you several times. Probably I am missing something, can you explain to me in what miraculous way it happens that option CONFIG_BOARD_ENABLE_USB_AUTOMATICALLY in #39987 is activated? |
I built an application and it worked, so going off that which I also explained to you several times, yes, it is possible and works. If USB_DEVICE_BLUETOOTH is not set, then USB_UART_CONSOLE is set, if this is set then BOARD_ENABLE_USB_AUTOMATICALLY is set which then enables USB automatically at startup without any Kconfigs being specified in the build options via command line |
Possibility to initialize USB device support is useful when only CDC ACM class is enabled and CDC ACM UART is used as backend for console, shell, or logging. Signed-off-by: Johann Fischer <[email protected]>
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]>
1c723f0 to
b7856d7
Compare
There is no USB_UART_CONSOLE, but assuming it describes exact behavior desired by you, it is the same as: or with 951633e, Is it correct so far? If yes please approve and accept the resulting disadvantages. |
usb: add option to initialize USB device support at boot
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.
Fixes: #39904