#include "app_cfg.h" #include "interfaces.h" vsf_err_t peripheral_commit(void) { return VSFERR_NONE; } const struct interfaces_info_t core_interfaces = { NULL, // struct interfaes_commit_t *comm; // core { CORE_INIT(__TARGET_CHIP__), CORE_FINI(__TARGET_CHIP__), CORE_RESET(__TARGET_CHIP__), CORE_SET_STACK(__TARGET_CHIP__), } #if IFS_UNIQUEID_EN // unique ID ,{ CORE_UID_GET(__TARGET_CHIP__), } #endif #if IFS_FLASH_EN // flash ,{ CORE_FLASH_INIT(__TARGET_CHIP__), CORE_FLASH_FINI(__TARGET_CHIP__), CORE_FLASH_LOCK(__TARGET_CHIP__),
* 2010-12-05: created(by SimonQian) * **************************************************************************/ #include "app_cfg.h" #include "interfaces.h" vsf_err_t peripheral_commit(void) { return VSFERR_NONE; } const struct interfaces_info_t core_interfaces = { // core .core.init = CORE_INIT(__TARGET_CHIP__), .core.fini = CORE_FINI(__TARGET_CHIP__), .core.reset = CORE_RESET(__TARGET_CHIP__), .core.get_stack = CORE_GET_STACK(__TARGET_CHIP__), .core.set_stack = CORE_SET_STACK(__TARGET_CHIP__), .core.sleep = CORE_SLEEP(__TARGET_CHIP__), .core.pendsv_config = CORE_PENDSV_CONFIG(__TARGET_CHIP__), .core.pendsv_trigger = CORE_PENDSV_TRIGGER(__TARGET_CHIP__), #if IFS_UNIQUEID_EN .uid.get = CORE_UID_GET(__TARGET_CHIP__), #endif #if IFS_FLASH_EN .flash.direct_read = &CORE_FLASH_DIRECT_READ(__TARGET_CHIP__), .flash.init = CORE_FLASH_INIT(__TARGET_CHIP__), .flash.fini = CORE_FLASH_FINI(__TARGET_CHIP__), .flash.capacity = CORE_FLASH_CAPACITY(__TARGET_CHIP__), .flash.baseaddr = CORE_FLASH_BASEADDR(__TARGET_CHIP__),