Beispiel #1
0
		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__),
		CORE_CLKO_FINI(__TARGET_CHIP__),
		CORE_CLKO_CONFIG(__TARGET_CHIP__),
		CORE_CLKO_ENABLE(__TARGET_CHIP__),
		CORE_CLKO_DISABLE(__TARGET_CHIP__),
	}
#endif
#if IFS_GPIO_EN
	,{
		// gpio
		CORE_GPIO_INIT(__TARGET_CHIP__),
		CORE_GPIO_FINI(__TARGET_CHIP__),
		CORE_GPIO_CONFIG_PIN(__TARGET_CHIP__),
		CORE_GPIO_CONFIG(__TARGET_CHIP__),
		CORE_GPIO_SET(__TARGET_CHIP__),
		CORE_GPIO_CLEAR(__TARGET_CHIP__),
		CORE_GPIO_OUT(__TARGET_CHIP__),
		CORE_GPIO_IN(__TARGET_CHIP__),
Beispiel #2
0
#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,
#endif
	.gpio.init = CORE_GPIO_INIT(__TARGET_CHIP__),
	.gpio.fini = CORE_GPIO_FINI(__TARGET_CHIP__),
	.gpio.config_pin = CORE_GPIO_CONFIG_PIN(__TARGET_CHIP__),
	.gpio.config = CORE_GPIO_CONFIG(__TARGET_CHIP__),