implement _ptxfe_int to support ISO and INT out transfers

This commit is contained in:
Austin Morton 2017-07-18 01:01:16 -04:00
parent 4344e6d179
commit 36ccd9f43a
1 changed files with 11 additions and 3 deletions

View File

@ -1172,9 +1172,17 @@ static inline void _nptxfe_int(USBHDriver *host) {
}
static inline void _ptxfe_int(USBHDriver *host) {
//TODO: implement
(void)host;
uinfo("PTXFE");
uint32_t rem;
stm32_otg_t *const otg = host->otg;
rem = _write_packet(&host->ep_active_lists[USBH_EPTYPE_ISO],
otg->HPTXSTS & HPTXSTS_PTXFSAVL_MASK);
rem += _write_packet(&host->ep_active_lists[USBH_EPTYPE_INT],
otg->HPTXSTS & HPTXSTS_PTXFSAVL_MASK);
if (!rem)
otg->GINTMSK &= ~GINTMSK_PTXFEM;
}
static void _disable(USBHDriver *host) {