Get iAP reset from decouple. Currently just done a initialisation.

This commit is contained in:
Russell Gallop
2011-08-26 15:35:17 +01:00
parent a4c5c56b6d
commit 4b6ea19049
2 changed files with 20 additions and 13 deletions

View File

@@ -671,6 +671,7 @@ void decouple(chanend c_mix_out,
xc_ptr zero_buffer = array_to_xc_ptr(g_zero_buffer);
int is_ack_iap;
int is_reset;
unsigned int datum_iap;
int iap_data_remaining_to_device = 0;
int iap_data_collected_from_device = 0;
@@ -763,6 +764,7 @@ void decouple(chanend c_mix_out,
// send the current host -> device buffer out of the fifo
XUD_SetReady(iap_from_host_usb_ep, 1);
iap_send_reset(c_iap);
#endif
#endif
@@ -1233,7 +1235,7 @@ void decouple(chanend c_mix_out,
select
{
/* Received word from iap thread - Check for ACK or Data */
case iap_get_ack_or_data(c_iap, is_ack_iap, datum_iap):
case iap_get_ack_or_reset_or_data(c_iap, is_ack_iap, is_reset, datum_iap):
if (is_ack_iap)
{
/* An ack from the iap/uart thread means it has accepted some data we sent it