Override restart_usb_driver for SN32 to avoid kb crash on remote wakeup
for history see: https://github.com/SonixQMK/qmk_firmware/pull/28 https://github.com/qmk/qmk_firmware/pull/12870
This commit is contained in:
parent
737997830b
commit
ac26bc170f
|
@ -57,13 +57,16 @@ void __early_init(void) {
|
|||
sn32_clock_init();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Board-specific initialization code.
|
||||
* @todo Add your board-specific code, if any.
|
||||
*/
|
||||
void boardInit(void) {
|
||||
|
||||
|
||||
SN_SYS0->EXRSTCTRL_b.RESETDIS = 1; // Disable RESET
|
||||
SN_SYS0->SWDCTRL_b.SWDDIS = 1; // Disable SWD
|
||||
}
|
||||
|
||||
void restart_usb_driver(USBDriver *usbp) {
|
||||
// Do nothing. Restarting the USB driver on these boards breaks it.
|
||||
}
|
||||
|
|
|
@ -75,3 +75,7 @@ void __early_init(void) {
|
|||
void boardInit(void) {
|
||||
SN_SYS0->SWDCTRL_b.SWDDIS = 1; // Disable SWD
|
||||
}
|
||||
|
||||
void restart_usb_driver(USBDriver *usbp) {
|
||||
// Do nothing. Restarting the USB driver on these boards breaks it.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue