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>
@@ -332,13 +330,6 @@ static int hci_uart_init(void)
332
330
{
333
331
LOG_DBG ("" );
334
332
335
- if (IS_ENABLED (CONFIG_USB_CDC_ACM )) {
336
- if (usb_enable (NULL )) {
337
- LOG_ERR ("Failed to enable USB" );
338
- return - EINVAL ;
339
- }
340
- }
341
-
342
333
if (!device_is_ready (hci_uart_dev )) {
343
334
LOG_ERR ("HCI UART %s is not ready" , hci_uart_dev -> name );
344
335
return - EINVAL ;
You can’t perform that action at this time.
0 commit comments