File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
samples/subsys/mgmt/mcumgr/smp_svr Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Enable USB subsystem
2
- CONFIG_USB_DEVICE_STACK=y
3
2
CONFIG_SERIAL=y
4
3
CONFIG_UART_LINE_CTRL=y
5
- CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
6
4
CONFIG_CONSOLE=y
5
+ CONFIG_USB_DEVICE_STACK_NEXT=y
6
+ CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y
7
7
# USB backend is serial device
8
8
CONFIG_MCUMGR_TRANSPORT_UART=y
9
9
CONFIG_BASE64=y
Original file line number Diff line number Diff line change @@ -71,15 +71,6 @@ int main(void)
71
71
start_smp_bluetooth_adverts ();
72
72
#endif
73
73
74
- if (IS_ENABLED (CONFIG_USB_DEVICE_STACK )) {
75
- rc = usb_enable (NULL );
76
-
77
- /* Ignore EALREADY error as USB CDC is likely already initialised */
78
- if (rc != 0 && rc != - EALREADY ) {
79
- LOG_ERR ("Failed to enable USB" );
80
- return 0 ;
81
- }
82
- }
83
74
/* using __TIME__ ensure that a new binary will be built on every
84
75
* compile which is convenient when testing firmware upgrade.
85
76
*/
You can’t perform that action at this time.
0 commit comments