]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/common/chibios/bootloader.c
Move STM32 bootloader address config to separate .h file.
[max/tmk_keyboard.git] / tmk_core / common / chibios / bootloader.c
index 93f2e3785a5b003a6ea70550e5299612491352be..f36eced432ff1b50766e3b6ffc6a3ec366b05d4b 100644 (file)
@@ -2,7 +2,7 @@
 
 #include "ch.h"
 
-#ifdef BOOTLOADER_ADDRESS
+#ifdef STM32_BOOTLOADER_ADDRESS
 #define SYMVAL(sym) (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0))
 extern uint32_t __ram0_end__;
 
@@ -10,7 +10,7 @@ void bootloader_jump(void) {
   *((unsigned long *)(SYMVAL(__ram0_end__) - 4)) = 0xDEADBEEF; // set magic flag => reset handler will jump into boot loader
    NVIC_SystemReset();
 }
-#else /* BOOTLOADER_ADDRESS */
+#else /* STM32_BOOTLOADER_ADDRESS */
 void bootloader_jump(void) {}
-#endif /* BOOTLOADER_ADDRESS */
+#endif /* STM32_BOOTLOADER_ADDRESS */