39 FMC->ISPCTL &= ~FMC_ISPCTL_ISPEN_Msk;
56 FMC->ISPADDR = u32PageAddr;
105 FMC->ISPADDR = u32Addr;
179 FMC->ISPADDR = (0x04 * u32Index) + 0x10;
205 FMC->ISPADDR = 0x04 * u32Index;
240 FMC->ISPADDR = u32PageAddr;
254 return (
FMC->ISPSTS & 0x0FFFFF00ul);
272 FMC->ISPADDR = u32Addr;
273 FMC->ISPDAT = u32Data;
375 *chksum =
FMC->ISPDAT;
Mini58 series peripheral access layer header file. This file contains all the peripheral register's d...
#define FMC_ISPCTL_ISPFF_Msk
#define FMC_ISPSTS_ISPFF_Msk
#define FMC_ISPCTL_BS_Msk
#define FMC_ISPCTL_ISPEN_Msk
#define FMC_ISPTRG_ISPGO_Msk
#define FMC_TIMEOUT_ERASE
#define FMC_ISPCMD_PROGRAM
#define FMC_TIMEOUT_CHKSUM
#define FMC_ISPCMD_READ_CID
#define FMC_ISPCMD_READ_PID
#define FMC_ISPCMD_CAL_CRC32
#define FMC_ISPCMD_VECMAP
#define FMC_ISPCMD_READ_CRC32
#define FMC_TIMEOUT_WRITE
#define FMC_ISPCMD_READ_UID
#define FMC_ISPCMD_PAGE_ERASE
void FMC_Close(void)
Disable all FMC functions.
int32_t FMC_ReadConfig(uint32_t *u32Config, uint32_t u32Count)
Read the User Configuration words.
void FMC_SetVectorPageAddr(uint32_t u32PageAddr)
This function will force re-map assigned flash page to CPU address 0x0.
uint32_t FMC_ReadCID(void)
Read company ID.
uint32_t FMC_GetVectorPageAddr(void)
Obtain the current vector page address setting.
uint32_t FMC_ReadUID(uint32_t u32Index)
This function reads one of the three UID.
int32_t FMC_GetCRC32Sum(uint32_t addr, uint32_t count, uint32_t *chksum)
Calculate and read the CRC32 checksum of a specified flash area.
int32_t FMC_Erase(uint32_t u32PageAddr)
Erase a page. The page size is 512 bytes.
uint32_t FMC_ReadDataFlashBaseAddr(void)
Get the base address of Data Flash if enabled.
int32_t FMC_Write(uint32_t u32Addr, uint32_t u32Data)
Writes a word data to specified flash address.
#define FMC_DISABLE_CFG_UPDATE()
uint32_t FMC_Read(uint32_t u32Addr)
Read a word from specified flash address.
#define FMC_ENABLE_CFG_UPDATE()
uint32_t FMC_ReadPID(void)
Read product ID.
int32_t FMC_GetBootSource(void)
get the current boot source
int32_t FMC_WriteConfig(uint32_t *u32Config, uint32_t u32Count)
Write User Configuration.
void FMC_Open(void)
Enable FMC ISP function.
uint32_t FMC_ReadUCID(uint32_t u32Index)
This function reads one of the four UCID.
#define FMC
Pointer to FMC register structure.