Пример #1
0
	// 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__),
		CORE_FLASH_PROTECT(__TARGET_CHIP__),
	}
#endif
#if IFS_CLKO_EN
	// clko
	,{
		CORE_CLKO_INIT(__TARGET_CHIP__),
Пример #2
0
	.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__),
#endif
#if IFS_GPIO_EN
#if IFS_CONST_EN
	.gpio.constants.INFLOAT = GPIO_INFLOAT,
	.gpio.constants.INPU = GPIO_INPU,
	.gpio.constants.INPD = GPIO_INPD,
	.gpio.constants.OUTPP = GPIO_OUTPP,
	.gpio.constants.OUTOD = GPIO_OUTOD,