![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "main_flash.h"
Go to the source code of this file.
Macros | |
| #define | Flash_Read(addr) *(volatile uint16_t*)((uint32_t)(addr)) |
| Read a half word data from Flash. More... | |
| #define | Flash_Write(addr, data) *(volatile uint16_t*)((uint32_t)(addr)) = ( uint16_t)(data) |
| Wirte a half word data into Flash. More... | |
Functions | |
| static uint8_t | MFlash_CheckToggle (uint16_t *pu16Addr) |
| automatic algorithm of flash memory execution More... | |
| static void | MFlash_ReadResetCmd (uint16_t *pu16ResetSecAddr) |
| Issue read/reset command. More... | |
| uint8_t | MFlash_ChipErase (boolean_t bCrRemain) |
| Flash chip erase. More... | |
| uint8_t | MFlash_SectorErase (uint16_t *pu16SecAddr) |
| Flash sector erase. More... | |
| uint8_t | MFlash_Write (uint16_t *pu16WriteAddr, uint16_t *pu16WriteData, uint32_t u32EvenSize, boolean_t bVerifyAndEccCheck) |
| Flash half-word write with ECC. More... | |
A detailed description is available at MainFlash Module description
History:
Definition in file main_flash.c.