mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 13:25:20 +03:00
Cosmetics
This commit is contained in:
parent
0c843eceb3
commit
0dbbfa1670
1 changed files with 2 additions and 2 deletions
|
@ -36,13 +36,13 @@
|
|||
|
||||
typedef void (*voidFunction)(void);
|
||||
|
||||
#define jumpTo(addr) { \
|
||||
#define jumpTo(addr) do { \
|
||||
SCB->VTOR = addr; \
|
||||
__set_MSP(*(__IO uint32_t*)addr); \
|
||||
uint32_t jumpAddress = *(uint32_t*)(addr + 4); \
|
||||
voidFunction jumpFn = (voidFunction)jumpAddress; \
|
||||
jumpFn(); \
|
||||
}
|
||||
} while(0)
|
||||
|
||||
// Bootloader marker:
|
||||
// -> used to detect valid bootloader files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue