summaryrefslogtreecommitdiff
path: root/platforms/chibios/bootloaders/tinyuf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/chibios/bootloaders/tinyuf2.c')
-rw-r--r--platforms/chibios/bootloaders/tinyuf2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/platforms/chibios/bootloaders/tinyuf2.c b/platforms/chibios/bootloaders/tinyuf2.c
index 9ffca5dec8..e08855b6c4 100644
--- a/platforms/chibios/bootloaders/tinyuf2.c
+++ b/platforms/chibios/bootloaders/tinyuf2.c
@@ -25,6 +25,10 @@
extern uint32_t _board_dfu_dbl_tap[];
#define DBL_TAP_REG _board_dfu_dbl_tap[0]
+__attribute__((weak)) void mcu_reset(void) {
+ NVIC_SystemReset();
+}
+
__attribute__((weak)) void bootloader_jump(void) {
DBL_TAP_REG = DBL_TAP_MAGIC;
NVIC_SystemReset();