40 FMC->ISPCON &= ~FMC_ISPCON_ISPEN_Msk;
59 FMC->ISPADR = u32PageAddr;
109 FMC->ISPADR = u32Addr;
183 FMC->ISPADR = (0x04 * u32Index) + 0x10;
209 FMC->ISPADR = 0x04 * u32Index;
244 FMC->ISPADR = u32PageAddr;
258 return (
FMC->ISPSTA & 0x0FFFFF00ul);
274 FMC->ISPADR = u32Addr;
275 FMC->ISPDAT = u32Data;
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
#define FMC_ISPCON_ISPFF_Msk
#define FMC_ISPCON_BS_Msk
#define FMC_ISPTRG_ISPGO_Msk
#define FMC_ISPCON_ISPEN_Msk
#define FMC_ISPSTA_ISPFF_Msk
#define FMC_TIMEOUT_ERASE
#define FMC_ISPCMD_PROGRAM
#define FMC_ISPCMD_READ_CID
#define FMC_ISPCMD_READ_PID
#define FMC_ISPCMD_VECMAP
#define FMC_TIMEOUT_WRITE
#define FMC_ISPCMD_READ_UID
#define FMC_ISPCMD_PAGE_ERASE
void FMC_Close(void)
Disable FMC ISP function.
int32_t FMC_ReadConfig(uint32_t *u32Config, uint32_t u32Count)
Execute ISP command to read User Configuration.
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_Erase(uint32_t u32PageAddr)
Execute ISP command to erase a flash 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)
Execute ISP command to program a word to flash.
#define FMC_DISABLE_CFG_UPDATE()
This macro disables User Configuration update function.
uint32_t FMC_Read(uint32_t u32Addr)
Execute ISP command to read a word from flash.
#define FMC_ENABLE_CFG_UPDATE()
This macro enables User Configuration update function.
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)
Execute ISP command to 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.