Skip to content

Commit

Permalink
[CI] Format code according to conventions (qmk#16888)
Browse files Browse the repository at this point in the history
  • Loading branch information
qmk-bot authored and zykrah committed Jul 2, 2022
1 parent 5f921ea commit 6c8df3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platforms/chibios/bootloaders/wb32_dfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
extern uint32_t __ram0_end__;

/* This code should be checked whether it runs correctly on platforms */
# define SYMVAL(sym) (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0))
# define BOOTLOADER_MAGIC 0xDEADBEEF
# define MAGIC_ADDR (unsigned long *)(SYMVAL(__ram0_end__) - 4)
#define SYMVAL(sym) (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0))
#define BOOTLOADER_MAGIC 0xDEADBEEF
#define MAGIC_ADDR (unsigned long *)(SYMVAL(__ram0_end__) - 4)

__attribute__((weak)) void bootloader_jump(void) {
*MAGIC_ADDR = BOOTLOADER_MAGIC; // set magic flag => reset handler will jump into boot loader
Expand Down

0 comments on commit 6c8df3b

Please sign in to comment.