小弟參照CH372外置固件模式,程序參照CH372EVT\PUB\XFIRM\C,燒入單片機(jī)運(yùn)行后,計(jì)算機(jī)說(shuō)USB設(shè)備運(yùn)行不正常,請(qǐng)教各位大俠時(shí)怎么回事
case DEF_USB_GET_DESCR: //獲得描述符 if(request.buffer[3]==1) //設(shè)備描述符上傳 VarSetupDescr=DevDes; else if(request.buffer[3]==2) //配置描述符上傳 VarSetupDescr=ConDes; else if(request.buffer[3]==3) { if ( request.buffer[2]== 0 ) VarSetupDescr=LangDes; else VarSetupDescr=SerDes; //做字符串處理 } mCh375DesUp();
如果要上傳接口描述符,端點(diǎn)描述符,該怎么改寫(xiě)程序啊,請(qǐng)指教