rusEFI
The most advanced open source ECU
|
Definition in file flash_main.h.
Functions | |
void | readFromFlash () |
void | initFlash () |
void | writeToFlashNow () |
bool | writeToFlashNowImpl () |
void | setNeedToWriteConfiguration () |
bool | settingsLtftRequestWriteToFlash () |
bool | flashAllowWriteID (uint32_t id) |
bool flashAllowWriteID | ( | uint32_t | id | ) |
void initFlash | ( | ) |
This would write NOW (you should not be doing this while connected to real engine)
This would schedule write to flash once the engine is stopped
Definition at line 163 of file flash_main.cpp.
Referenced by initHardwareNoConfig().
void readFromFlash | ( | ) |
Definition at line 114 of file flash_main.cpp.
Referenced by initFlash(), and loadConfiguration().
void setNeedToWriteConfiguration | ( | ) |
Definition at line 43 of file flash_main.cpp.
Referenced by LongTermIdleTrim::checkIfShouldSave(), and requestBurn().
bool settingsLtftRequestWriteToFlash | ( | ) |
Definition at line 49 of file flash_main.cpp.
Referenced by doWriteLTFT(), and LtftState::load().
void writeToFlashNow | ( | ) |
Because of hardware-related issues, some stm32f4/7 chips are totally frozen while we are writing to internal flash. Writing the configuration takes about 1-2 seconds, we cannot afford to do that while the engine is running so we postpone the write until the engine is stopped.
Definition at line 37 of file flash_main.cpp.
Referenced by doRewriteConfig(), doWriteConfigurationToFlash(), handleCommandX14(), loadConfiguration(), and setEngineType().
bool writeToFlashNowImpl | ( | ) |
Definition at line 54 of file flash_main.cpp.
Referenced by storageWriteID().