forked from PAWPAW-Mirror/lib_xua
Just tidy up
This commit is contained in:
@@ -1005,6 +1005,7 @@ void decouple(chanend c_mix_out,
|
||||
|
||||
|
||||
#ifdef IAP
|
||||
#if 1
|
||||
GET_SHARED_GLOBAL(iap_reset, g_iap_reset);
|
||||
if (iap_reset)
|
||||
{
|
||||
@@ -1016,6 +1017,7 @@ void decouple(chanend c_mix_out,
|
||||
iap_data_collected_from_device = 0;
|
||||
SET_SHARED_GLOBAL(g_iap_to_host_flag, 0);
|
||||
}
|
||||
#endif
|
||||
// Need to handle sending ZLP on iap_to_host_usb_ep_int to signal iOS device to collect from bulk endpoint.
|
||||
/* Check if buffer() has send IAP packet to host */
|
||||
GET_SHARED_GLOBAL(iap_to_host_flag, g_iap_to_host_flag);
|
||||
@@ -1069,7 +1071,6 @@ void decouple(chanend c_mix_out,
|
||||
if (iap_data_remaining_to_device)
|
||||
{
|
||||
read_byte_via_xc_ptr(datum_iap, iap_from_host_rdptr);
|
||||
//printintln(datum_iap);
|
||||
outuint(c_iap, datum_iap);
|
||||
iap_from_host_rdptr += 1;
|
||||
iap_data_remaining_to_device -= 1;
|
||||
|
||||
@@ -592,7 +592,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
||||
case XUD_SetData_Select(c_iap_to_host, ep_iap_to_host, tmp):
|
||||
asm("#iap d->h");
|
||||
|
||||
// ack the decouple thread to say it has been sent to host
|
||||
// ack the decouple thread to say it has been sent to host
|
||||
SET_SHARED_GLOBAL(g_iap_to_host_flag, 1);
|
||||
|
||||
swap(iap_to_host_buffer, iap_to_host_waiting_buffer);
|
||||
@@ -600,7 +600,6 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
||||
|
||||
case XUD_SetData_Select(c_iap_to_host_int, ep_iap_to_host_int, tmp):
|
||||
asm("#iap int d->h");
|
||||
//printintln(1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user