Update USB for stm32f103

This commit is contained in:
NIIBE Yutaka
2016-05-30 20:11:18 +09:00
parent 1ae3caf7fc
commit e8eaeced77
4 changed files with 13 additions and 121 deletions

View File

@@ -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);
}
}
}