54 FMC->ISPADR = u32PageAddr;
102 FMC->ISPADR = u32Addr;
147 FMC->ISPADR = (0x04 * u32Index) + 0x10;
164 FMC->ISPADR = 0x04 * u32Index;
191 FMC->ISPADR = u32PageAddr;
203 return (
FMC->ISPSTA & 0x0FFFFF00ul);
217 FMC->ISPADR = u32Addr;
218 FMC->ISPDAT = u32Data;
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.
uint32_t FMC_ReadCID(void)
Read company ID.
#define FMC_ISPCMD_PROGRAM
#define FMC_ISPTRG_ISPGO_Msk
#define FMC_ISPCMD_READ_UID
#define FMC_DISABLE_CFG_UPDATE()
int32_t FMC_ReadConfig(uint32_t *u32Config, uint32_t u32Count)
Execute ISP command to read User Configuration.
void FMC_Open(void)
Enable FMC ISP function.
uint32_t FMC_ReadUID(uint32_t u32Index)
This function reads one of the three UID.
void FMC_Close(void)
Disable FMC ISP function.
#define FMC_ISPCON_BS_Msk
Nano102/112 peripheral access layer header file. This file contains all the peripheral register's def...
#define FMC_ENABLE_CFG_UPDATE()
#define FMC_ISPCMD_READ_PID
int32_t FMC_GetBootSource(void)
Get the current boot source.
#define FMC_ISPCON_ISPFF_Msk
#define FMC_ISPCMD_READ_CID
#define FMC_ISPCON_ISPEN_Msk
uint32_t FMC_ReadPID(void)
Read product ID.
void FMC_Write(uint32_t u32Addr, uint32_t u32Data)
Execute ISP command to program a word to flash.
uint32_t FMC_GetVectorPageAddr(void)
Obtain the current vector page address setting.
int32_t FMC_Erase(uint32_t u32PageAddr)
Execute ISP command to erase a flash page. The page size is 512 bytes.
#define FMC
Pointer to FMC register structure.
#define FMC_ISPCMD_VECMAP
uint32_t FMC_Read(uint32_t u32Addr)
Execute ISP command to read a word from flash.
uint32_t FMC_ReadDataFlashBaseAddr(void)
Get the base address of Data Flash if enabled.
#define FMC_ISPCMD_PAGE_ERASE
int32_t FMC_WriteConfig(uint32_t *u32Config, uint32_t u32Count)
Execute ISP command to write User Configuration.