Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed WB32 MCU remote wakeup issue #20863

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update board.c for WB32 MCU
  • Loading branch information
Joy committed May 12, 2023
commit ee5e81bf17852d29add81b860aff2442a185c59e
13 changes: 1 addition & 12 deletions platforms/chibios/boards/GENERIC_WB32_F3G71XX/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,11 @@ void __early_init(void) {
wb32_clock_init();
wb32_gpio_init();
}

/**
* @brief Board-specific initialization code.
* @note You can add your board-specific code here.
*/
void boardInit(void) {

}

void restart_usb_driver(USBDriver *usbp) {
#if USB_SUSPEND_WAKEUP_DELAY > 0
// Some hubs, kvm switches, and monitors do
// weird things, with USB device state bouncing
// around wildly on wakeup, yielding race
// conditions that can corrupt the keyboard state.
//
// Pause for a while to let things settle...
chThdSleepMilliseconds(USB_SUSPEND_WAKEUP_DELAY);
#endif
}
13 changes: 1 addition & 12 deletions platforms/chibios/boards/GENERIC_WB32_FQ95XX/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,11 @@ void __early_init(void) {
wb32_clock_init();
wb32_gpio_init();
}

/**
* @brief Board-specific initialization code.
* @note You can add your board-specific code here.
*/
void boardInit(void) {

}

void restart_usb_driver(USBDriver *usbp) {
#if USB_SUSPEND_WAKEUP_DELAY > 0
// Some hubs, kvm switches, and monitors do
// weird things, with USB device state bouncing
// around wildly on wakeup, yielding race
// conditions that can corrupt the keyboard state.
//
// Pause for a while to let things settle...
chThdSleepMilliseconds(USB_SUSPEND_WAKEUP_DELAY);
#endif
}