Comment only

This commit is contained in:
Ross Owen
2014-03-20 18:18:51 +00:00
parent 839a7b82ec
commit e0da5930f7

View File

@@ -238,14 +238,13 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
outuint(c_audioControl, SET_SAMPLE_FREQ); outuint(c_audioControl, SET_SAMPLE_FREQ);
outuint(c_audioControl, AUDIO_STOP_FOR_DFU); outuint(c_audioControl, AUDIO_STOP_FOR_DFU);
// No Handshake // No Handshake
//chkct(c_audioControl, XS1_CT_END);
DFU_mode_active = 1; DFU_mode_active = 1;
} }
#endif #endif
while(1) while(1)
{ {
/* Returns 0 for success, -1 for bus reset */ /* Returns XUD_RES_OKAY for success, XUD_RES_RST for bus reset */
#if defined(__XC__) #if defined(__XC__)
XUD_Result_t result = USB_GetSetupPacket(ep0_out, ep0_in, sp); XUD_Result_t result = USB_GetSetupPacket(ep0_out, ep0_in, sp);
#else #else
@@ -350,13 +349,6 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
UserAudioStreamStop(); UserAudioStreamStop();
} }
#endif #endif
///* Record interface change */
//if(sp.wIndex < NUM_INTERFACES)
// g_interfaceAlt[sp.wIndex] = sp.wValue;
//TODO - we should stall out of range requests
} /* if(sp.bRequest == SET_INTERFACE) */ } /* if(sp.bRequest == SET_INTERFACE) */
break; /* BMREQ_H2D_STANDARD_INT */ break; /* BMREQ_H2D_STANDARD_INT */
@@ -400,17 +392,14 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
/* Overriding implementation in USB_StandardRequests */ /* Overriding implementation in USB_StandardRequests */
case USB_SET_CONFIGURATION: case USB_SET_CONFIGURATION:
//g_currentConfig = sp.wValue;
//if(g_current_config == 1) //if(g_current_config == 1)
{ {
/* Consider host active with valid driver at this point */ /* Consider host active with valid driver at this point */
UserHostActive(1); UserHostActive(1);
} }
///* No data stage for this request, just do status stage */ /* We want to run USB_StandardsRequests() implementation also. Don't modify result
//result = XUD_DoSetRequestStatus(ep0_in); * and don't call XUD_DoSetRequestStatus() */
/* We want to run USB_StandardsRequests() implementation also. Don't modify result */
break; break;
default: default: