49 FMC->ISPADR = u32PageAddr;
94 FMC->ISPADR = u32Addr;
139 FMC->ISPADR = (0x04 * u32Index) + 0x10;
156 FMC->ISPADR = 0x04 * u32Index;
182 FMC->ISPADR = u32PageAddr;
194 return (
FMC->ISPSTA & 0x0FFFFF00ul);
206 FMC->ISPADR = u32Addr;
207 FMC->ISPDAT = u32Data;
uint32_t FMC_ReadUID(uint32_t u32Index)
This function reads one of the three UID.
void FMC_Open(void)
Enable FMC ISP function.
uint32_t FMC_ReadPID(void)
Read product ID.
Mini51 series peripheral access layer header file. This file contains all the peripheral register's d...
int32_t FMC_GetBootSource(void)
get the current boot source
#define FMC_ISPCMD_VECMAP
int32_t FMC_WriteConfig(uint32_t *u32Config, uint32_t u32Count)
Write User Configuration.
#define FMC_ISPCMD_READ_PID
int32_t FMC_Erase(uint32_t u32PageAddr)
Erase a page. The page size is 512 bytes.
#define FMC_ISPCMD_PAGE_ERASE
void FMC_SetVectorPageAddr(uint32_t u32PageAddr)
This function will force re-map assigned flash page to CPU address 0x0.
uint32_t FMC_ReadUCID(uint32_t u32Index)
This function reads one of the four UCID.
void FMC_Close(void)
Disable all FMC functions.
#define FMC_ISPCON_ISPEN_Msk
#define FMC_ISPCMD_READ_CID
void FMC_Write(uint32_t u32Addr, uint32_t u32Data)
Writes a word data to specified flash address.
#define FMC_ISPCON_BS_Msk
uint32_t FMC_ReadCID(void)
Read company ID.
#define FMC_ISPCON_ISPFF_Msk
#define FMC_ISPCMD_READ_UID
int32_t FMC_ReadConfig(uint32_t *u32Config, uint32_t u32Count)
Read the User Configuration words.
#define FMC_DISABLE_CFG_UPDATE()
uint32_t FMC_GetVectorPageAddr(void)
Obtain the current vector page address setting.
#define FMC
Pointer to FMC register structure.
uint32_t FMC_ReadDataFlashBaseAddr(void)
Get the base address of Data Flash if enabled.
uint32_t FMC_Read(uint32_t u32Addr)
Read a word from specified flash address.
#define FMC_ISPCMD_PROGRAM
#define FMC_ISPTRG_ISPGO_Msk
#define FMC_ENABLE_CFG_UPDATE()