File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
samples/bluetooth/hci_uart Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 1
- CONFIG_USB_DEVICE_STACK=y
2
- CONFIG_USB_DEVICE_PRODUCT="Zephyr HCI UART sample"
3
- CONFIG_USB_CDC_ACM=y
4
- CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
1
+ # The board uses the CDC ACM UART as the serial backend by default, nothing
2
+ # else needs to be configured here.
3
+ CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Zephyr HCI UART sample"
Original file line number Diff line number Diff line change 20
20
#include <zephyr/init.h>
21
21
#include <zephyr/drivers/uart.h>
22
22
23
- #include <zephyr/usb/usb_device.h>
24
-
25
23
#include <zephyr/net_buf.h>
26
24
#include <zephyr/bluetooth/bluetooth.h>
27
25
#include <zephyr/bluetooth/l2cap.h>
@@ -331,13 +329,6 @@ static int hci_uart_init(void)
331
329
{
332
330
LOG_DBG ("" );
333
331
334
- if (IS_ENABLED (CONFIG_USB_CDC_ACM )) {
335
- if (usb_enable (NULL )) {
336
- LOG_ERR ("Failed to enable USB" );
337
- return - EINVAL ;
338
- }
339
- }
340
-
341
332
if (!device_is_ready (hci_uart_dev )) {
342
333
LOG_ERR ("HCI UART %s is not ready" , hci_uart_dev -> name );
343
334
return - EINVAL ;
You can’t perform that action at this time.
0 commit comments