⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bulkloop.c

📁 赛普拉斯 68013芯片的固件驱动
💻 C
📖 第 1 页 / 共 2 页
字号:
}

BOOL DR_GetStatus(void)
{
   return(TRUE);
}

BOOL DR_ClearFeature(void)
{
   return(TRUE);
}

BOOL DR_SetFeature(void)
{
   return(TRUE);
}

BOOL DR_VendorCmnd(void)
{
	BYTE tmp;
  
  	switch (SETUPDAT[1])
  	{
   case VR_NAKALL_ON:
		tmp = FIFORESET;
		tmp |= bmNAKALL;      
		SYNCDELAY;                    
		FIFORESET = tmp;
		break;
	case VR_NAKALL_OFF:
		tmp = FIFORESET;
		tmp &= ~bmNAKALL;      
		SYNCDELAY;                    
		FIFORESET = tmp;
		break;
	default:
		return(TRUE);
   }
   return(FALSE);
}


//================================================================
//中断功能描述:SETUP数据有效
//================================================================
void ISR_Sudav(void) interrupt 0
{
	GotSUD = TRUE;            	// Set flag
	EZUSB_IRQ_CLEAR();
	USBIRQ = bmSUDAV;         	// Clear SUDAV IRQ
}

//================================================================
//中断功能描述:设置保留令牌
//================================================================
void ISR_Sutok(void) interrupt 0
{
	EZUSB_IRQ_CLEAR();
	USBIRQ = bmSUTOK;         	// Clear SUTOK IRQ
}

//================================================================
//中断功能描述:帧或微帧起始
//================================================================
void ISR_Sof(void) interrupt 0
{
	EZUSB_IRQ_CLEAR();
	USBIRQ = bmSOF;            // Clear SOF IRQ
}

//================================================================
//中断功能描述:USB总线复位
//================================================================
void ISR_Ures(void) interrupt 0
{
	// whenever we get a USB reset, we should revert to full speed mode
	pConfigDscr = pFullSpeedConfigDscr;
	((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
	pOtherConfigDscr = pHighSpeedConfigDscr;
	((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
	
	EZUSB_IRQ_CLEAR();
	USBIRQ = bmURES;         	// Clear URES IRQ
}

//================================================================
//中断功能描述:USB挂起请求
//================================================================
void ISR_Susp(void) interrupt 0
{
	Sleep = TRUE;
	EZUSB_IRQ_CLEAR();
	USBIRQ = bmSUSP;
}

//================================================================
//中断功能描述:进入高速操作
//================================================================
void ISR_Highspeed(void) interrupt 0
{
   if (EZUSB_HIGHSPEED())
   {
      pConfigDscr = pHighSpeedConfigDscr;
      ((CONFIGDSCR xdata *) pConfigDscr)->type = CONFIG_DSCR;
      pOtherConfigDscr = pFullSpeedConfigDscr;
      ((CONFIGDSCR xdata *) pOtherConfigDscr)->type = OTHERSPEED_DSCR;
   }
   EZUSB_IRQ_CLEAR();
   USBIRQ = bmHSGRANT;
}

//================================================================
//中断功能描述:FX2应答控制端点握手信息
//================================================================
void ISR_Ep0ack(void) interrupt 0
{
}

//================================================================
//中断功能描述:
//================================================================
void ISR_Stub(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP0-IN 准备加载数据
//================================================================
void ISR_Ep0in(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP0-OUT有了USB数据
//================================================================
void ISR_Ep0out(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP1-IN 准备加载数据
//================================================================
void ISR_Ep1in(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP1-OUT有了USB数据
//================================================================
void ISR_Ep1out(void) interrupt 0
{
}

//================================================================
//中断功能描述:IN缓冲区有效,OUT缓冲区有数据
//================================================================
void ISR_Ep2inout(void) interrupt 0
{
}

//================================================================
//中断功能描述:IN缓冲区有效,OUT缓冲区有数据
//================================================================
void ISR_Ep4inout(void) interrupt 0
{
}

//================================================================
//中断功能描述:IN缓冲区有效,OUT缓冲区有数据
//================================================================
void ISR_Ep6inout(void) interrupt 0
{
}

//================================================================
//中断功能描述:IN缓冲区有效,OUT缓冲区有数据
//================================================================
void ISR_Ep8inout(void) interrupt 0
{
}

//================================================================
//中断功能描述:IN-BULK-NAK(任何一个IN端点)
//================================================================
void ISR_Ibn(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP0 OUT 检测回应,而无应答
//================================================================
void ISR_Ep0pingnak(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP1 OUT 检测回应,而无应答
//================================================================
void ISR_Ep1pingnak(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP2 OUT 检测回应,而无应答
//================================================================
void ISR_Ep2pingnak(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP4 OUT 检测回应,而无应答
//================================================================
void ISR_Ep4pingnak(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP6 OUT 检测回应,而无应答
//================================================================
void ISR_Ep6pingnak(void) interrupt 0
{
}

//================================================================
//中断功能描述:EP8 OUT 检测回应,而无应答
//================================================================
void ISR_Ep8pingnak(void) interrupt 0
{
}

//================================================================
//中断功能描述:超越变成限制的总线错误
//================================================================
void ISR_Errorlimit(void) interrupt 0
{
}

//================================================================
//中断功能描述:ISO EP2 OUT PID 顺序错误
//================================================================
void ISR_Ep2piderror(void) interrupt 0
{
}

//================================================================
//中断功能描述:ISO EP4 OUT PID 顺序错误
//================================================================
void ISR_Ep4piderror(void) interrupt 0
{
}

//================================================================
//中断功能描述:ISO EP6 OUT PID 顺序错误
//================================================================
void ISR_Ep6piderror(void) interrupt 0
{
}

//================================================================
//中断功能描述:ISO EP8 OUT PID 顺序错误
//================================================================
void ISR_Ep8piderror(void) interrupt 0
{
}


//================================================================
//中断功能描述:端点2可编程标志
//================================================================
void ISR_Ep2pflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点4可编程标志
//================================================================
void ISR_Ep4pflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点6可编程标志
//================================================================
void ISR_Ep6pflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点8可编程标志
//================================================================
void ISR_Ep8pflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点2空标志
//================================================================
void ISR_Ep2eflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点4空标志
//================================================================
void ISR_Ep4eflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点6空标志
//================================================================
void ISR_Ep6eflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点8空标志
//================================================================
void ISR_Ep8eflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点2满标志
//================================================================
void ISR_Ep2fflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点4满标志
//================================================================
void ISR_Ep4fflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点6满标志
//================================================================
void ISR_Ep6fflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:端点8满标志
//================================================================
void ISR_Ep8fflag(void) interrupt 0
{
}

//================================================================
//中断功能描述:GPIF操作完成
//================================================================
void ISR_GpifComplete(void) interrupt 0
{
}

//================================================================
//中断功能描述:GPIF波形
//================================================================
void ISR_GpifWaveform(void) interrupt 0
{
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -