[Core] Add Reboot keycode to core (#15990)
This commit is contained in:
parent
425c54cf8c
commit
787a68948f
25 changed files with 124 additions and 5 deletions
|
@ -61,6 +61,9 @@ __attribute__((weak)) void bootloader_jump(void) {
|
|||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
__attribute__((weak)) void mcu_reset(void) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
// not needed at all, but if anybody attempts to invoke it....
|
||||
void enter_bootloader_mode_if_requested(void) {}
|
||||
|
||||
|
@ -76,6 +79,10 @@ __attribute__((weak)) void bootloader_jump(void) {
|
|||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
__attribute__((weak)) void mcu_reset(void) {
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
void enter_bootloader_mode_if_requested(void) {
|
||||
unsigned long *check = MAGIC_ADDR;
|
||||
if (*check == BOOTLOADER_MAGIC) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue