Пример #1
0
		CORE_ADC_START(__TARGET_CHIP__),
		CORE_ADC_ISREADY(__TARGET_CHIP__),
		CORE_ADC_GET(__TARGET_CHIP__),
		CORE_ADC_SAMPLE(__TARGET_CHIP__)
	}
#endif
#if IFS_IIC_EN
	,{
		// i2c
		NULL, NULL, NULL, NULL, NULL
	}
#endif
#if IFS_USBD_EN
	,{
		// usbd
		CORE_USBD_INIT(__TARGET_CHIP__),
		CORE_USBD_FINI(__TARGET_CHIP__),
		CORE_USBD_RESET(__TARGET_CHIP__),
		CORE_USBD_POLL(__TARGET_CHIP__),
		CORE_USBD_CONNECT(__TARGET_CHIP__),
		CORE_USBD_DISCONNECT(__TARGET_CHIP__),
		CORE_USBD_SET_ADDRESS(__TARGET_CHIP__),
		CORE_USBD_GET_ADDRESS(__TARGET_CHIP__),
		CORE_USBD_SUSPEND(__TARGET_CHIP__),
		CORE_USBD_RESUME(__TARGET_CHIP__),
		CORE_USBD_LOWPOWER(__TARGET_CHIP__),
		CORE_USBD_GET_FRAME_NUM(__TARGET_CHIP__),
		CORE_USBD_GET_SETUP(__TARGET_CHIP__),
		CORE_USBD_PREPARE_BUFFER(__TARGET_CHIP__),
		// ep
		{
Пример #2
0
#endif
#if IFS_ADC_EN
	.adc.init = CORE_ADC_INIT(__TARGET_CHIP__),
	.adc.fini = CORE_ADC_FINI(__TARGET_CHIP__),
	.adc.config = CORE_ADC_CONFIG(__TARGET_CHIP__),
	.adc.config_channel = CORE_ADC_CONFIG_CHANNEL(__TARGET_CHIP__),
	.adc.get_max_value = CORE_ADC_GET_MAX_VALUE(__TARGET_CHIP__),
	.adc.calibrate = CORE_ADC_CALIBRATE(__TARGET_CHIP__),
	.adc.start = CORE_ADC_START(__TARGET_CHIP__),
#endif
#if IFS_IIC_EN
	.i2c.init = NULL,
	.i2c.fini = NULL,
#endif
#if IFS_USBD_EN
	.usbd.init = CORE_USBD_INIT(__TARGET_CHIP__),
	.usbd.fini = CORE_USBD_FINI(__TARGET_CHIP__),
	.usbd.reset = CORE_USBD_RESET(__TARGET_CHIP__),
	.usbd.connect = CORE_USBD_CONNECT(__TARGET_CHIP__),
	.usbd.disconnect = CORE_USBD_DISCONNECT(__TARGET_CHIP__),
	.usbd.set_address = CORE_USBD_SET_ADDRESS(__TARGET_CHIP__),
	.usbd.get_address = CORE_USBD_GET_ADDRESS(__TARGET_CHIP__),
	.usbd.suspend = CORE_USBD_SUSPEND(__TARGET_CHIP__),
	.usbd.resume = CORE_USBD_RESUME(__TARGET_CHIP__),
	.usbd.lowpower = CORE_USBD_LOWPOWER(__TARGET_CHIP__),
	.usbd.get_frame_number = CORE_USBD_GET_FRAME_NUM(__TARGET_CHIP__),
	.usbd.get_setup = CORE_USBD_GET_SETUP(__TARGET_CHIP__),
	.usbd.prepare_buffer = CORE_USBD_PREPARE_BUFFER(__TARGET_CHIP__),
	.usbd.ep.num_of_ep = &CORE_USBD_EP_NUM(__TARGET_CHIP__),
	.usbd.ep.reset = CORE_USBD_EP_RESET(__TARGET_CHIP__),
	.usbd.ep.set_type = CORE_USBD_EP_SET_TYPE(__TARGET_CHIP__),