bug fix for control_read

This commit is contained in:
NIIBE Yutaka
2012-05-19 01:40:44 +09:00
parent b7599feb4f
commit 810b0d9a5b
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2012-05-19 Niibe Yutaka <gniibe@fsij.org>
* src/usb_lld.c (handle_datastage_in): Bug fix, erable RX when
sending ZLP. It will be possible to get OUT transaction soon
after IN transaction.
2012-05-18 Niibe Yutaka <gniibe@fsij.org>
* src/usb_lld.c (handle_datastage_out): Fix rx copying.

View File

@@ -422,11 +422,11 @@ static void handle_datastage_in (void)
/* No more data to send. Send empty packet */
st103_set_tx_count (ENDP0, 0);
st103_ep_set_tx_status (ENDP0, EP_TX_VALID);
st103_ep_set_rxtx_status (ENDP0, EP_RX_VALID, EP_TX_VALID);
}
else
{
/* No more data to send, but receive OUT acknowledge.*/
/* No more data to send, proceed to receive OUT acknowledge.*/
dev_p->state = WAIT_STATUS_OUT;
st103_ep_set_rxtx_status (ENDP0, EP_RX_VALID, EP_TX_STALL);
}