|
楼主 |
发表于 2016-5-29 12:36:56
|
显示全部楼层
需要针对芯片实现以下几个接口:
ARM_DRIVER_VERSION(* GetVersion )(void)
Pointer to ARM_Flash_GetVersion : Get driver version.
ARM_FLASH_CAPABILITIES(* GetCapabilities )(void)
Pointer to ARM_Flash_GetCapabilities : Get driver capabilities.
int32_t(* Initialize )(ARM_Flash_SignalEvent_t cb_event)
Pointer to ARM_Flash_Initialize : Initialize Flash Interface.
int32_t(* Uninitialize )(void)
Pointer to ARM_Flash_Uninitialize : De-initialize Flash Interface.
int32_t(* PowerControl )(ARM_POWER_STATE state)
Pointer to ARM_Flash_PowerControl : Control Flash Interface Power.
int32_t(* ReadData )(uint32_t addr, void *data, uint32_t cnt)
Pointer to ARM_Flash_ReadData : Read data from Flash.
int32_t(* ProgramData )(uint32_t addr, const void *data, uint32_t cnt)
Pointer to ARM_Flash_ProgramData : Program data to Flash.
int32_t(* EraseSector )(uint32_t addr)
Pointer to ARM_Flash_EraseSector : Erase Flash Sector.
int32_t(* EraseChip )(void)
Pointer to ARM_Flash_EraseChip : Erase complete Flash.
ARM_FLASH_STATUS(* GetStatus )(void)
Pointer to ARM_Flash_GetStatus : Get Flash status.
ARM_FLASH_INFO *(* GetInfo )(void)
Pointer to ARM_Flash_GetInfo : Get Flash information.
而且这几个接口依赖于cmsis driver包。 |
|