This commit is contained in:
Ross Owen
2014-02-19 12:28:54 +00:00
2 changed files with 8 additions and 4 deletions

View File

@@ -194,7 +194,9 @@ XUD_EpType epTypeTableIn[EP_CNT_IN] = { XUD_EPTYPE_CTL | XUD_STATUS_ENABLE,
#endif #endif
#ifdef IAP #ifdef IAP
XUD_EPTYPE_BUL | XUD_STATUS_ENABLE, XUD_EPTYPE_BUL | XUD_STATUS_ENABLE,
#ifdef IAP_INT_EP
XUD_EPTYPE_BUL | XUD_STATUS_ENABLE, XUD_EPTYPE_BUL | XUD_STATUS_ENABLE,
#endif
#endif #endif
}; };

View File

@@ -177,12 +177,14 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
int iap_draining_chan = 0; int iap_draining_chan = 0;
#endif #endif
xc_ptr p_inZeroBuff = array_to_xc_ptr(inZeroBuff); xc_ptr p_inZeroBuff = array_to_xc_ptr(inZeroBuff);
#ifdef IAP #ifdef IAP
XUD_ResetEndpoint(ep_iap_to_host, null); //XUD_ResetEndpoint(ep_iap_to_host, null);
iap_send_reset(c_iap); #ifdef IAP_INT_EP
//XUD_ResetEndpoint(ep_iap_to_host_int, null);
#endif
//iap_send_reset(c_iap);
#endif #endif
#if defined(SPDIF_RX) || defined(ADAT_RX) #if defined(SPDIF_RX) || defined(ADAT_RX)