File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
samples/boards/st/sensortile_box Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,10 @@ CONFIG_IIS3DHHC_TRIGGER_OWN_THREAD=y
17
17
CONFIG_LIS2MDL_TRIGGER_NONE=y
18
18
19
19
# config USB and USB console
20
- CONFIG_USB_DEVICE_VID=0x0483
21
- CONFIG_USB_DEVICE_PID=0x1234
22
- CONFIG_USB_DEVICE_STACK=y
23
- CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC SensorTile.box"
24
- CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
25
- CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
20
+ CONFIG_USB_DEVICE_STACK_NEXT=y
21
+ CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
22
+ CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Zephyr CDC SensorTile.box"
23
+ CONFIG_USBD_CDC_ACM_LOG_LEVEL_OFF=y
26
24
27
25
CONFIG_UART_INTERRUPT_DRIVEN=y
28
26
CONFIG_UART_LINE_CTRL=y
Original file line number Diff line number Diff line change @@ -256,8 +256,7 @@ int main(void)
256
256
int cnt = 1 ;
257
257
uint32_t dtr = 0 ;
258
258
259
- /* Application must enable USB by itself */
260
- if (!device_is_ready (dev ) || usb_enable (NULL )) {
259
+ if (!device_is_ready (dev )) {
261
260
return 0 ;
262
261
}
263
262
You can’t perform that action at this time.
0 commit comments