[Core] Add Reboot keycode to core (#15990)

This commit is contained in:
Drashna Jaelre
2022-05-13 20:35:49 -07:00
committed by GitHub
parent 425c54cf8c
commit 787a68948f
25 changed files with 124 additions and 5 deletions

View File

@ -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();