summaryrefslogtreecommitdiffstats
path: root/platforms/chibios/boards/GENERIC_WB32_F3G71XX
diff options
context:
space:
mode:
authorJoy Lee <joylee.lc@foxmail.com>2022-09-02 11:48:02 +0800
committerGitHub <noreply@github.com>2022-09-01 20:48:02 -0700
commitb5a52b4cff55520462559bf6b79b3ce5b32d661e (patch)
treeddef34f9c58282b480e799d305ac8c9b01b567d0 /platforms/chibios/boards/GENERIC_WB32_F3G71XX
parent6b6cbf6038d3060c68d4f39cd8d151a611d1e10d (diff)
Prevent USB peripheral fault when restarting USB on WB32 MCUs (#18058)
Co-authored-by: Joy <chang.li@westberrytech.com>
Diffstat (limited to 'platforms/chibios/boards/GENERIC_WB32_F3G71XX')
-rw-r--r--platforms/chibios/boards/GENERIC_WB32_F3G71XX/board/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/platforms/chibios/boards/GENERIC_WB32_F3G71XX/board/board.c b/platforms/chibios/boards/GENERIC_WB32_F3G71XX/board/board.c
index e38a7e0054..f74c9e8be7 100644
--- a/platforms/chibios/boards/GENERIC_WB32_F3G71XX/board/board.c
+++ b/platforms/chibios/boards/GENERIC_WB32_F3G71XX/board/board.c
@@ -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.
+}