From 90d9af272769a99b356c2c8520f03b23a733b20f Mon Sep 17 00:00:00 2001 From: "pablin.123.ra@gmail.com" Date: Sat, 8 Oct 2022 17:15:16 -0500 Subject: [PATCH] Fix jsonschema, fix missing mcu_reset --- data/schemas/keyboard.jsonschema | 2 +- platforms/chibios/bootloaders/sn32_dfu.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema index 34c1d06e7968..51978c5e68f0 100644 --- a/data/schemas/keyboard.jsonschema +++ b/data/schemas/keyboard.jsonschema @@ -105,7 +105,7 @@ "unknown", "usbasploader", "wb32-dfu", - "sn32_dfu" + "sn32-dfu" ] }, "bootloader_instructions": { diff --git a/platforms/chibios/bootloaders/sn32_dfu.c b/platforms/chibios/bootloaders/sn32_dfu.c index 1583588615f2..daf9a4c0d30b 100644 --- a/platforms/chibios/bootloaders/sn32_dfu.c +++ b/platforms/chibios/bootloaders/sn32_dfu.c @@ -46,3 +46,7 @@ void enter_bootloader_mode_if_requested(void) { ; } } + +__attribute__((weak)) void mcu_reset(void) { + NVIC_SystemReset(); +}