diff options
| author | Drashna Jaelre | 2022-05-14 05:35:49 +0200 |
|---|---|---|
| committer | GitHub | 2022-05-14 05:35:49 +0200 |
| commit | 787a68948fa0d5e251e22a623071082c8c0561b1 (patch) | |
| tree | cc28d2caa680b8eef62e4cfdd232dde66e43416a /platforms/chibios/bootloaders/stm32duino.c | |
| parent | 425c54cf8c459b1cc33deaa53955e2db41aa0b01 (diff) | |
[Core] Add Reboot keycode to core (#15990)
Diffstat (limited to 'platforms/chibios/bootloaders/stm32duino.c')
| -rw-r--r-- | platforms/chibios/bootloaders/stm32duino.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platforms/chibios/bootloaders/stm32duino.c b/platforms/chibios/bootloaders/stm32duino.c index 53d3ba0adb..e2db7fa16c 100644 --- a/platforms/chibios/bootloaders/stm32duino.c +++ b/platforms/chibios/bootloaders/stm32duino.c @@ -21,3 +21,8 @@ __attribute__((weak)) void bootloader_jump(void) { NVIC_SystemReset(); } + +__attribute__((weak)) void mcu_reset(void) { + BKP->DR10 = RTC_BOOTLOADER_JUST_UPLOADED; + NVIC_SystemReset(); +}
\ No newline at end of file |