mirror of https://github.com/zmkfirmware/zmk.git
fix(usb): Adjust Kconfig settings for USB.
* Ensure USB isn't initialized automatically before we do, which can happen if USB CDC logging is used/enabled for a given board. * Adjust USB HID to initialize the USB class/interface before we enable the USB device itself.
This commit is contained in:
parent
1ed3d23e05
commit
d1950c4a64
|
|
@ -131,6 +131,9 @@ config ZMK_USB_BOOT
|
||||||
select USB_HID_BOOT_PROTOCOL
|
select USB_HID_BOOT_PROTOCOL
|
||||||
select USB_DEVICE_SOF
|
select USB_DEVICE_SOF
|
||||||
|
|
||||||
|
config USB_DEVICE_INITIALIZE_AT_BOOT
|
||||||
|
default n
|
||||||
|
|
||||||
if ZMK_USB
|
if ZMK_USB
|
||||||
|
|
||||||
config USB_NUMOF_EP_WRITE_RETRIES
|
config USB_NUMOF_EP_WRITE_RETRIES
|
||||||
|
|
@ -482,7 +485,7 @@ if USB_DEVICE_STACK
|
||||||
|
|
||||||
config ZMK_USB_INIT_PRIORITY
|
config ZMK_USB_INIT_PRIORITY
|
||||||
int "USB Init Priority"
|
int "USB Init Priority"
|
||||||
default 94
|
default 96
|
||||||
|
|
||||||
config ZMK_USB_HID_INIT_PRIORITY
|
config ZMK_USB_HID_INIT_PRIORITY
|
||||||
int "USB HID Init Priority"
|
int "USB HID Init Priority"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue