Skip to content

Commit

Permalink
Prevent USB peripheral fault when restarting USB on WB32 MCUs (qmk#18058
Browse files Browse the repository at this point in the history
)

Co-authored-by: Joy <[email protected]>
  • Loading branch information
2 people authored and ramonimbao committed Nov 28, 2022
1 parent 82de165 commit 658518b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platforms/chibios/boards/GENERIC_WB32_F3G71XX/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ void __early_init(void) {
void boardInit(void) {

}

void restart_usb_driver(USBDriver *usbp) {
// Do nothing. Restarting the USB driver on these boards breaks it.
}
4 changes: 4 additions & 0 deletions platforms/chibios/boards/GENERIC_WB32_FQ95XX/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ void __early_init(void) {
void boardInit(void) {

}

void restart_usb_driver(USBDriver *usbp) {
// Do nothing. Restarting the USB driver on these boards breaks it.
}
2 changes: 2 additions & 0 deletions platforms/chibios/boards/GENERIC_WB32_FQ95XX/configs/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP
# define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
#endif

#define USB_ENDPOINTS_ARE_REORDERABLE

0 comments on commit 658518b

Please sign in to comment.