rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
flash_main.h
Go to the documentation of this file.
1/**
2 * @file flash_main.h
3 * @brief
4 *
5 * @date Sep 19, 2013
6 * @author Andrey Belomutskiy, (c) 2012-2020
7 */
8
9#pragma once
10
11void readFromFlash();
12void initFlash();
13
14/**
15 * Because of hardware-related issues, some stm32f4/7 chips are totally
16 * frozen while we are writing to internal flash. Writing the configuration takes
17 * about 1-2 seconds, we cannot afford to do that while the engine is
18 * running so we postpone the write until the engine is stopped.
19 */
20void writeToFlashNow();
23
25
26bool flashAllowWriteID(uint32_t id);
bool flashAllowWriteID(uint32_t id)
void initFlash()
bool writeToFlashNowImpl()
void setNeedToWriteConfiguration()
bool settingsLtftRequestWriteToFlash()
void readFromFlash()
void writeToFlashNow()