![]() |
NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
|
Macros | |
#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) |
Execute ISP command to erase a flash page. The page size is 512 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... | |
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... | |
void | 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_ReadConfig (uint32_t *u32Config, uint32_t u32Count) |
Execute ISP command to read User Configuration. More... | |
int32_t | FMC_WriteConfig (uint32_t *u32Config, uint32_t u32Count) |
Execute ISP command to write User Configuration. More... | |
Variables | |
int32_t | g_FMC_i32ErrCode |
#define FMC_CLR_FAIL_FLAG | ( | ) |
#define FMC_DISABLE_AP_UPDATE | ( | ) |
#define FMC_DISABLE_CFG_UPDATE | ( | ) |
#define FMC_DISABLE_ISP | ( | ) |
#define FMC_DISABLE_LD_UPDATE | ( | ) |
#define FMC_ENABLE_AP_UPDATE | ( | ) |
#define FMC_ENABLE_CFG_UPDATE | ( | ) |
#define FMC_ENABLE_ISP | ( | ) |
#define FMC_ENABLE_LD_UPDATE | ( | ) |
#define FMC_GET_FAIL_FLAG | ( | ) |
#define FMC_SET_APROM_BOOT | ( | ) |
#define FMC_SET_LDROM_BOOT | ( | ) |
int32_t FMC_Erase | ( | uint32_t | u32PageAddr | ) |
Execute ISP command to erase a flash page. The page size is 512 bytes.
[in] | u32PageAddr | Address of the flash page to be erased. It must be a 512-byte aligned address. |
0 | Success |
-1 | Erase failed or time-out |
Definition at line 54 of file fmc.c.
int32_t FMC_GetBootSource | ( | void | ) |
uint32_t FMC_GetVectorPageAddr | ( | void | ) |
uint32_t FMC_Read | ( | uint32_t | u32Addr | ) |
uint32_t FMC_ReadCID | ( | void | ) |
int32_t FMC_ReadConfig | ( | uint32_t * | u32Config, |
uint32_t | u32Count | ||
) |
Execute ISP command to read User Configuration.
[out] | u32Config | A two-word array. u32Config[0] holds CONFIG0, while u32Config[1] holds CONFIG1. |
[in] | u32Count | Avaliable word count in u32Config. |
0 | Success. |
-1 | Invalid parameter. |
Definition at line 296 of file fmc.c.
uint32_t FMC_ReadDataFlashBaseAddr | ( | void | ) |
uint32_t FMC_ReadPID | ( | void | ) |
uint32_t FMC_ReadUCID | ( | uint32_t | u32Index | ) |
uint32_t FMC_ReadUID | ( | uint32_t | u32Index | ) |
void FMC_SetVectorPageAddr | ( | uint32_t | u32PageAddr | ) |
int32_t FMC_Write | ( | uint32_t | u32Addr, |
uint32_t | u32Data | ||
) |
int32_t FMC_WriteConfig | ( | uint32_t * | u32Config, |
uint32_t | u32Count | ||
) |
Execute ISP command to write User Configuration.
[in] | u32Config | A two-word array. u32Config[0] holds CONFIG0, while u32Config[1] holds CONFIG1. |
[in] | u32Count | Available word count in u32Config. |
0 | Success. |
-1 | Invalid parameter. |
Definition at line 315 of file fmc.c.