Beispiel #1
0
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__),
		CORE_FLASH_UNLOCK(__TARGET_CHIP__),
		CORE_FLASH_GETCAPACITY(__TARGET_CHIP__),
		CORE_FLASH_READ(__TARGET_CHIP__),
		CORE_FLASH_READ_ISREADY(__TARGET_CHIP__),
		CORE_FLASH_WRITE(__TARGET_CHIP__),
		CORE_FLASH_WRITE_ISREADY(__TARGET_CHIP__),
		CORE_FLASH_READPAGE(__TARGET_CHIP__),
Beispiel #2
0
	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__),
	.flash.blocksize = CORE_FLASH_BLOCKSIZE(__TARGET_CHIP__),
	.flash.config_cb = CORE_FLASH_CONFIG_CB(__TARGET_CHIP__),
	.flash.erase = CORE_FLASH_ERASE(__TARGET_CHIP__),
	.flash.read = CORE_FLASH_READ(__TARGET_CHIP__),
	.flash.write = CORE_FLASH_WRITE(__TARGET_CHIP__),
#endif
#if IFS_CLKO_EN
	.clko.init = CORE_CLKO_INIT(__TARGET_CHIP__),