Prevent USB peripheral fault when restarting USB on WB32 MCUs (#18058)

Co-authored-by: Joy <chang.li@westberrytech.com>
This commit is contained in:
Joy Lee 2022-09-02 11:48:02 +08:00 committed by GitHub
parent 6b6cbf6038
commit b5a52b4cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -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.
}

View File

@ -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.
}

View File

@ -18,3 +18,5 @@
#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP
# define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
#endif
#define USB_ENDPOINTS_ARE_REORDERABLE