1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00

Add MSC for F7 (#5629)

* Add MSC for F7

* Fix compilation error.
This commit is contained in:
Chris 2018-04-06 02:53:26 +02:00 committed by Michael Keller
parent 75bafb7b71
commit 9d5fa7311e
12 changed files with 306 additions and 9 deletions

View file

@ -3757,7 +3757,11 @@ static void cliMsc(char *cmdline)
mpuResetFn();
}
*((uint32_t *)0x2001FFF0) = 0xDDDD1010; // Same location as bootloader magic but different value
#ifdef STM32F7
*((__IO uint32_t*) BKPSRAM_BASE + 16) = MSC_MAGIC;
#elif defined(STM32F4)
*((uint32_t *)0x2001FFF0) = MSC_MAGIC;
#endif
__disable_irq();
NVIC_SystemReset();