diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 20:11:18 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 20:11:18 +0900 |
commit | e8eaeced7741488bc83735ef81478d98b877470e (patch) | |
tree | 8ab682906876756aa91dd5944e14acafbbec3eb6 /mcu | |
parent | 1ae3caf7fc8d9d1073684bf2da91b552065a41a7 (diff) |
Update USB for stm32f103
Diffstat (limited to 'mcu')
-rw-r--r-- | mcu/usb-stm32f103.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mcu/usb-stm32f103.c b/mcu/usb-stm32f103.c index 73c32c3..02be1cf 100644 --- a/mcu/usb-stm32f103.c +++ b/mcu/usb-stm32f103.c @@ -885,8 +885,10 @@ usb_handle_transfer (uint16_t istr_value) if ((ep_value & EP_CTR_TX)) { + uint32_t len = st103_get_tx_count (ep_index); + st103_ep_clear_ctr_tx (ep_index); - usb_cb_tx_done (ep_index); + usb_cb_tx_done (ep_index, len, 1); } } } |