Пример #1
0
	{
		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__),
		CORE_FLASH_READPAGE_ISREADY(__TARGET_CHIP__),
		CORE_FLASH_ERASEPAGE(__TARGET_CHIP__),
		CORE_FLASH_ERASEPAGE_ISREADY(__TARGET_CHIP__),
		CORE_FLASH_WRITEPAGE(__TARGET_CHIP__),
		CORE_FLASH_WRITEPAGE_ISREADY(__TARGET_CHIP__),
		CORE_FLASH_ISPROTECTED(__TARGET_CHIP__),
Пример #2
0
{
	// 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__),
	.clko.fini = CORE_CLKO_FINI(__TARGET_CHIP__),
	.clko.config = CORE_CLKO_CONFIG(__TARGET_CHIP__),
	.clko.enable = CORE_CLKO_ENABLE(__TARGET_CHIP__),
	.clko.disable = CORE_CLKO_DISABLE(__TARGET_CHIP__),