summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-07-02 17:20:25 +0700
committerhathach <[email protected]>2013-07-02 17:20:25 +0700
commite1ad7b62cf453735b3f8b9d97abe2b3e6579a099 (patch)
treef90caee82c921b0b62c8ebaa19352eb28f72d245 /tinyusb/host
parent6ce90e2bd8d1599df22af8dc670d4187a1ec6dc5 (diff)
add way to calculate the actual byte transferred with ehci
add come callback for cdch add code for cdc serial demo
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/ehci/ehci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index 3e75c265a..c016a3a3c 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -938,6 +938,7 @@ static void qtd_init(ehci_qtd_t* p_qtd, uint32_t data_ptr, uint16_t total_bytes)
p_qtd->cerr = 3; // TODO 3 consecutive errors tolerance
p_qtd->data_toggle = 0;
p_qtd->total_bytes = total_bytes;
+ p_qtd->expected_bytes = total_bytes;
p_qtd->buffer[0] = data_ptr;
for(uint8_t i=1; i<5; i++)