1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 13:25:20 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2019-06-04 16:42:52 +02:00
parent 0c843eceb3
commit 0dbbfa1670
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -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