![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "pdl.h"

Go to the source code of this file.
Macros | |
| #define | MFLASH_CODE1 0x0AA8 |
| #define | MFLASH_CODE2 0x0554 |
| #define | MFLASH_RET_OK 0 |
| #define | MFLASH_RET_INVALID_PARA 1 |
| #define | MFLASH_RET_ABNORMAL 2 |
| #define | MFLASH_CHK_TOGG_NORMAL 0 |
| #define | MFLASH_CHK_TOGG_ABNORMAL 1 |
| #define | MFLASH_CHK_DPOL_NORMAL 0 |
| #define | MFLASH_CHK_DPOL_ABNORMAL 1 |
| #define | MFLASH_CHK_DPOL_MASK (uint16_t)0x0080 |
| #define | MFLASH_CHK_TOGG_MASK (uint16_t)0x0040 |
| #define | MFLASH_CHK_TLOV_MASK (uint16_t)0x0020 |
| #define | CR_DATA_ADDR (0x00402000) |
Functions | |
| 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... | |
Headerfile for Main Flash operaiton
History:
Definition in file main_flash.h.