Handle sending ZLP to interrupt endpoint.

This commit is contained in:
Russell Gallop
2011-08-16 17:59:35 +01:00
parent 4693b9d0b5
commit bb5840fb66
2 changed files with 17 additions and 1 deletions

View File

@@ -576,7 +576,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
/* IAP IN to host */
case inuint_byref(c_iap_to_host, tmp):
asm("#iap d->h");
// fill in the data
XUD_SetData_Inline(ep_iap_to_host, c_iap_to_host);
@@ -588,6 +588,18 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
swap(iap_to_host_buffer, iap_to_host_waiting_buffer);
break;
/* IAP interrupt IN to host */
case inuint_byref(c_iap_to_host_int, tmp):
asm("#iap interrupt d->h");
// fill in the data
XUD_SetData_Inline(ep_iap_to_host_int, c_iap_to_host_int);
XUD_SetNotReady(ep_iap_to_host_int);
// Don't need to handle data here as always ZLP
break;
#endif
#endif
}