implement _ptxfe_int to support ISO and INT out transfers
This commit is contained in:
parent
4344e6d179
commit
36ccd9f43a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue