forked from PAWPAW-Mirror/lib_xua
Send data from host over to iAP byte at a time.
This commit is contained in:
@@ -1218,10 +1218,10 @@ void decouple(chanend c_mix_out,
|
|||||||
|
|
||||||
if (iap_data_remaining_to_device)
|
if (iap_data_remaining_to_device)
|
||||||
{
|
{
|
||||||
read_via_xc_ptr(datum_iap, iap_from_host_rdptr);
|
read_byte_via_xc_ptr(datum_iap, iap_from_host_rdptr);
|
||||||
outuint(c_iap, datum_iap);
|
outuint(c_iap, datum_iap);
|
||||||
iap_from_host_rdptr += 4;
|
iap_from_host_rdptr += 1;
|
||||||
iap_data_remaining_to_device -= 4;
|
iap_data_remaining_to_device -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1242,10 +1242,10 @@ void decouple(chanend c_mix_out,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Read another word from the fifo and output it to iap thread */
|
/* Read another word from the fifo and output it to iap thread */
|
||||||
read_via_xc_ptr(datum_iap, iap_from_host_rdptr);
|
read_byte_via_xc_ptr(datum_iap, iap_from_host_rdptr);
|
||||||
outuint(c_iap, datum_iap);
|
outuint(c_iap, datum_iap);
|
||||||
iap_from_host_rdptr += 4;
|
iap_from_host_rdptr += 1;
|
||||||
iap_data_remaining_to_device -= 4;
|
iap_data_remaining_to_device -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user