mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Change MSC boot mode to use persistence layer and unify with bootloader
Replaced the existing `PERSISTENT_OBJECT_BOOTLOADER_REQUEST` that was bootloader specific, with `PERSISTENT_OBJECT_BOOTMODE_REQUEST` that can be shared by any required boot mode based on it's contents. Currently supports bootloader and MSC, but is extensible for additional future needs. The previous hardcoded memory address usage for MSC boot was removed.
This commit is contained in:
parent
5c5520ecf4
commit
065ce24d4d
7 changed files with 26 additions and 25 deletions
|
@ -53,6 +53,7 @@ bool isMPUSoftReset(void);
|
|||
void cycleCounterInit(void);
|
||||
|
||||
#define BOOTLOADER_REQUEST_COOKIE 0xDEADBEEF
|
||||
#define MSC_REQUEST_COOKIE 0xDDDD1010
|
||||
|
||||
void enableGPIOPowerUsageAndNoiseReductions(void);
|
||||
// current crystal frequency - 8 or 12MHz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue