![]() |
NUC472_NUC442_BSP V3.03.003
The Board Support Package for NUC472/NUC442
|
NUC472/NUC442 Flash Memory Controller Driver Header File. More...

Go to the source code of this file.
Macros | |
| #define | FMC_APROM_BASE |
| #define | FMC_APROM_END |
| #define | FMC_LDROM_BASE |
| #define | FMC_LDROM_END |
| #define | FMC_CONFIG_BASE |
| #define | FMC_FLASH_PAGE_SIZE |
| #define | FMC_LDROM_SIZE |
| #define | FMC_ISPCMD_READ |
| #define | FMC_ISPCMD_READ_64 |
| #define | FMC_ISPCMD_PROGRAM |
| #define | FMC_ISPCMD_WRITE |
| #define | FMC_ISPCMD_WRITE_64 |
| #define | FMC_ISPCMD_PAGE_ERASE |
| #define | FMC_ISPCMD_READ_CID |
| #define | FMC_ISPCMD_READ_PID |
| #define | FMC_ISPCMD_READ_UID |
| #define | ISP_ISPCMD_MULTI_WRITE |
| #define | FMC_ISPCMD_VECMAP |
| #define | IS_BOOT_FROM_APROM |
| #define | IS_BOOT_FROM_LDROM |
| #define | FMC_TIMEOUT_READ |
| #define | FMC_TIMEOUT_WRITE |
| #define | FMC_TIMEOUT_ERASE |
| #define | FMC_SET_APROM_BOOT() |
| This macro selects booting from APROM. More... | |
| #define | FMC_SET_LDROM_BOOT() |
| This macro selects booting from LDROM. More... | |
| #define | FMC_ENABLE_AP_UPDATE() |
| This macro enables APROM update function. More... | |
| #define | FMC_DISABLE_AP_UPDATE() |
| This macro disables APROM update function. More... | |
| #define | FMC_ENABLE_CFG_UPDATE() |
| This macro enables User Configuration update function. More... | |
| #define | FMC_DISABLE_CFG_UPDATE() |
| This macro disables User Configuration update function. More... | |
| #define | FMC_ENABLE_LD_UPDATE() |
| This macro enables LDROM update function. More... | |
| #define | FMC_DISABLE_LD_UPDATE() |
| This macro disables LDROM update function. More... | |
| #define | FMC_ENABLE_ISP() |
| This macro enables ISP function. More... | |
| #define | FMC_DISABLE_ISP() |
| This macro disables ISP function. More... | |
| #define | FMC_GET_FAIL_FLAG() |
| This macro gets ISP fail flag value. More... | |
| #define | FMC_CLR_FAIL_FLAG() |
| This macro clears ISP fail flag. More... | |
Functions | |
| void | FMC_Close (void) |
| Disable FMC ISP function. More... | |
| int32_t | FMC_Erase (uint32_t u32PageAddr) |
| Erase a page. The page size is 2048 bytes. More... | |
| int32_t | FMC_GetBootSource (void) |
| Get the current boot source. More... | |
| void | FMC_Open (void) |
| Enable FMC ISP function. More... | |
| uint32_t | FMC_Read (uint32_t u32Addr) |
| Execute ISP command to read a word from flash. More... | |
| int32_t | FMC_Read_64 (uint32_t u32Addr, uint32_t *u32Data0, uint32_t *u32Data1) |
| Execute ISP 64-bits read command to read two words from flash. More... | |
| uint32_t | FMC_ReadCID (void) |
| Read company ID. More... | |
| uint32_t | FMC_ReadPID (void) |
| Read product ID. More... | |
| uint32_t | FMC_ReadUCID (uint32_t u32Index) |
| This function reads one of the four UCID. More... | |
| uint32_t | FMC_ReadUID (uint32_t u32Index) |
| This function reads one of the three UID. More... | |
| uint32_t | FMC_ReadDataFlashBaseAddr (void) |
| Get the base address of Data Flash if enabled. More... | |
| int32_t | FMC_SetVectorPageAddr (uint32_t u32PageAddr) |
| This function will force re-map assigned flash page to CPU address 0x0. More... | |
| uint32_t | FMC_GetVectorPageAddr (void) |
| Obtain the current vector page address setting. More... | |
| int32_t | FMC_Write (uint32_t u32Addr, uint32_t u32Data) |
| Execute ISP command to program a word to flash. More... | |
| int32_t | FMC_Write_64 (uint32_t u32Addr, uint32_t u32Data0, uint32_t u32Data1) |
| Execute ISP 64-bits write command to program two words to flash. More... | |
| int32_t | FMC_ReadConfig (uint32_t *u32Config, uint32_t u32Count) |
| Read the User Configuration words. More... | |
| int32_t | FMC_WriteConfig (uint32_t *u32Config, uint32_t u32Count) |
| Write User Configuration. More... | |
| uint32_t | FMC_CRC8 (uint32_t au32Data[], int i32Count) |
| CRC8 Calculator. More... | |
Variables | |
| int32_t | g_FMC_i32ErrCode |
NUC472/NUC442 Flash Memory Controller Driver Header File.
Definition in file fmc.h.