Prevent USB peripheral fault when restarting USB on WB32 MCUs (#18058)
Co-authored-by: Joy <[email protected]>
This commit is contained in:
1 parent
6b6cbf6038
commit
b5a52b4cff
3 files changed
+10
No files matched your search
@@ -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.
|
||||
}
|
||||
@@ -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.
|
||||
}
|
||||
@@ -18,3 +18,5 @@
|
||||
#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP
|
||||
# define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
|
||||
#endif
|
||||
|
||||
#define USB_ENDPOINTS_ARE_REORDERABLE
|
||||
Reference in new issue
Block a user