mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
STM32F4: execute extra enable irq on startup only if rebooting into DFU
This commit is contained in:
parent
72a6e701eb
commit
f499041c8e
1 changed files with 3 additions and 1 deletions
|
@ -199,9 +199,11 @@ void systemInit(void)
|
|||
void(*bootJump)(void);
|
||||
void checkForBootLoaderRequest(void)
|
||||
{
|
||||
__enable_irq();
|
||||
if (*((uint32_t *)0x2001FFFC) == 0xDEADBEEF) {
|
||||
|
||||
*((uint32_t *)0x2001FFFC) = 0x0;
|
||||
|
||||
__enable_irq();
|
||||
__set_MSP(0x20001000);
|
||||
|
||||
bootJump = (void(*)(void))(*((uint32_t *) 0x1fff0004));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue