From: flabbergast Date: Sun, 18 Oct 2015 10:55:39 +0000 (+0100) Subject: ChibiOS: Update infinity bootloader code to match updated ChibiOS. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d3f4b01d220c55e60bea0e8fba27330c8adba903;p=max%2Ftmk_keyboard.git ChibiOS: Update infinity bootloader code to match updated ChibiOS. --- diff --git a/tmk_core/common/chibios/bootloader.c b/tmk_core/common/chibios/bootloader.c index d19aab89..c8888f3c 100644 --- a/tmk_core/common/chibios/bootloader.c +++ b/tmk_core/common/chibios/bootloader.c @@ -26,10 +26,9 @@ void bootloader_jump(void) { #if defined(KIIBOHD_BOOTLOADER) /* Kiibohd Bootloader (MCHCK and Infinity KB) */ #define SCB_AIRCR_VECTKEY_WRITEMAGIC 0x05FA0000 -#define VBAT (*(volatile uint8_t *)0x4003E000) // VBAT register file (32 bytes) const uint8_t sys_reset_to_loader_magic[] = "\xff\x00\x7fRESET TO LOADER\x7f\x00\xff"; void bootloader_jump(void) { - __builtin_memcpy((void *)&VBAT, (const void *)sys_reset_to_loader_magic, sizeof(sys_reset_to_loader_magic)); + __builtin_memcpy((void *)VBAT, (const void *)sys_reset_to_loader_magic, sizeof(sys_reset_to_loader_magic)); // request reset SCB->AIRCR = SCB_AIRCR_VECTKEY_WRITEMAGIC | SCB_AIRCR_SYSRESETREQ_Msk; }