Skip to content

Commit

Permalink
Use restart_usb_driver redefined in board chibios board file
Browse files Browse the repository at this point in the history
  • Loading branch information
stdvar committed Oct 11, 2021
1 parent a2b3600 commit 9dfc2fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tmk_core/protocol/chibios/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ int main(void) {
/* Remote wakeup */
if (suspend_wakeup_condition()) {
usbWakeupHost(&USB_DRIVER);
#if !defined(SN32F24xx)
restart_usb_driver(&USB_DRIVER);
#endif
}
}
/* Woken up */
Expand Down
2 changes: 1 addition & 1 deletion tmk_core/protocol/chibios/usb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ void init_usb_driver(USBDriver *usbp) {
chVTObjectInit(&keyboard_idle_timer);
}

void restart_usb_driver(USBDriver *usbp) {
__attribute__((weak)) void restart_usb_driver(USBDriver *usbp) {
usbStop(usbp);
usbDisconnectBus(usbp);
usbStart(usbp, &usbcfg);
Expand Down

0 comments on commit 9dfc2fa

Please sign in to comment.