mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +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);
|
typedef void (*voidFunction)(void);
|
||||||
|
|
||||||
#define jumpTo(addr) { \
|
#define jumpTo(addr) do { \
|
||||||
SCB->VTOR = addr; \
|
SCB->VTOR = addr; \
|
||||||
__set_MSP(*(__IO uint32_t*)addr); \
|
__set_MSP(*(__IO uint32_t*)addr); \
|
||||||
uint32_t jumpAddress = *(uint32_t*)(addr + 4); \
|
uint32_t jumpAddress = *(uint32_t*)(addr + 4); \
|
||||||
voidFunction jumpFn = (voidFunction)jumpAddress; \
|
voidFunction jumpFn = (voidFunction)jumpAddress; \
|
||||||
jumpFn(); \
|
jumpFn(); \
|
||||||
}
|
} while(0)
|
||||||
|
|
||||||
// Bootloader marker:
|
// Bootloader marker:
|
||||||
// -> used to detect valid bootloader files
|
// -> used to detect valid bootloader files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue