forked from forks/qmk_firmware
[CI] Format code according to conventions (#16888)
This commit is contained in:
parent
25f849b397
commit
c3a03b6423
|
@ -23,9 +23,9 @@
|
||||||
extern uint32_t __ram0_end__;
|
extern uint32_t __ram0_end__;
|
||||||
|
|
||||||
/* This code should be checked whether it runs correctly on platforms */
|
/* This code should be checked whether it runs correctly on platforms */
|
||||||
# define SYMVAL(sym) (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0))
|
#define SYMVAL(sym) (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0))
|
||||||
# define BOOTLOADER_MAGIC 0xDEADBEEF
|
#define BOOTLOADER_MAGIC 0xDEADBEEF
|
||||||
# define MAGIC_ADDR (unsigned long *)(SYMVAL(__ram0_end__) - 4)
|
#define MAGIC_ADDR (unsigned long *)(SYMVAL(__ram0_end__) - 4)
|
||||||
|
|
||||||
__attribute__((weak)) void bootloader_jump(void) {
|
__attribute__((weak)) void bootloader_jump(void) {
|
||||||
*MAGIC_ADDR = BOOTLOADER_MAGIC; // set magic flag => reset handler will jump into boot loader
|
*MAGIC_ADDR = BOOTLOADER_MAGIC; // set magic flag => reset handler will jump into boot loader
|
||||||
|
|
Loading…
Reference in a new issue