aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Frogeye <s+github@frogeye.fr>2025-03-28 10:19:07 +0100
committerGitHub <noreply@github.com>2025-03-28 20:19:07 +1100
commit25fb4a498a4b6e8436e528edd502bda46fd2c464 (patch)
treea06797ece165094cdd014428bb985c909aaaa81f
parent6f3b494a4d8a28696743e977f677e6a247dbe392 (diff)
Allow AnnePro2 to reboot (#24886)
Without this, the QK_REBOOT key did nothing.
-rw-r--r--keyboards/annepro2/annepro2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/annepro2/annepro2.c b/keyboards/annepro2/annepro2.c
index f536690de3..9e72dbf6fb 100644
--- a/keyboards/annepro2/annepro2.c
+++ b/keyboards/annepro2/annepro2.c
@@ -48,6 +48,11 @@ ble_capslock_t ble_capslock = {._dummy = {0}, .caps_lock = false};
static uint8_t led_enabled = 1;
#endif
+void mcu_reset(void) {
+ __disable_irq();
+ NVIC_SystemReset();
+}
+
void bootloader_jump(void) {
// Send msg to shine to boot into IAP
ap2_set_IAP();