From d98736a18dd5b76b7c46725f5467c070f791ece9 Mon Sep 17 00:00:00 2001 From: Sam Chesney Date: Tue, 18 Feb 2014 17:59:04 +0000 Subject: [PATCH 1/2] Resolve excess elements in array initializer warning when iAP interrupt EP is disabled --- module_usb_audio/main.xc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module_usb_audio/main.xc b/module_usb_audio/main.xc index 2f7eb135..e6bccb1b 100755 --- a/module_usb_audio/main.xc +++ b/module_usb_audio/main.xc @@ -194,7 +194,9 @@ XUD_EpType epTypeTableIn[EP_CNT_IN] = { XUD_EPTYPE_CTL | XUD_STATUS_ENABLE, #endif #ifdef IAP XUD_EPTYPE_BUL | XUD_STATUS_ENABLE, +#ifdef IAP_INT_EP XUD_EPTYPE_BUL | XUD_STATUS_ENABLE, +#endif #endif }; From d6809a4082d21b7c15a50d1a5cae014f1c23feed Mon Sep 17 00:00:00 2001 From: Sam Chesney Date: Tue, 18 Feb 2014 18:00:54 +0000 Subject: [PATCH 2/2] Added call to XUD_ResetEndpoint to cause buffer to fall through into while(1) loop... --- module_usb_audio/usb_buffer/usb_buffer.xc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/usb_buffer/usb_buffer.xc b/module_usb_audio/usb_buffer/usb_buffer.xc index d7ac1261..840e74c7 100644 --- a/module_usb_audio/usb_buffer/usb_buffer.xc +++ b/module_usb_audio/usb_buffer/usb_buffer.xc @@ -181,7 +181,10 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud xc_ptr p_inZeroBuff = array_to_xc_ptr(inZeroBuff); #ifdef IAP - //XUD_ResetEndpoint(ep_iap_from_host, null); + XUD_ResetEndpoint(ep_iap_to_host, null); +#ifdef IAP_INT_EP + XUD_ResetEndpoint(ep_iap_to_host_int, null); +#endif iap_send_reset(c_iap); #endif