mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Add booting into the flash boot loader as an option.
This commit is contained in:
parent
de60402840
commit
5cf42f40b6
14 changed files with 180 additions and 111 deletions
|
@ -50,16 +50,23 @@ typedef enum {
|
|||
#define WARNING_CODE_DURATION_LONG_MS 250
|
||||
#define WARNING_CODE_DURATION_SHORT_MS 50
|
||||
|
||||
typedef enum {
|
||||
BOOTLOADER_REQUEST_ROM,
|
||||
BOATLOADER_REQUEST_FLASH,
|
||||
} bootloaderRequestType_e;
|
||||
|
||||
// failure
|
||||
void indicateFailure(failureMode_e mode, int repeatCount);
|
||||
void failureMode(failureMode_e mode);
|
||||
|
||||
// bootloader/IAP
|
||||
void systemReset(void);
|
||||
void systemResetToBootloader(void);
|
||||
void checkForBootLoaderRequest(void);
|
||||
void systemResetToBootloader(bootloaderRequestType_e requestType);
|
||||
bool isMPUSoftReset(void);
|
||||
void cycleCounterInit(void);
|
||||
#if defined(STM32H7)
|
||||
void systemCheckResetReason(void);
|
||||
#endif
|
||||
|
||||
void initialiseMemorySections(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue