USB on-the-go full-speed (OTG_FS)
RM0090
1340/1731
DocID018909 Rev 11
else
if (
CHH
)
{
Mask
CHH
De-allocate Channel
}
Code sample: Isochronous IN
Unmask (TXERR/XFRC/FRMOR/BBERR)
if (
XFRC
or
FRMOR
)
{
if (
XFRC
and (OTG_FS_HCTSIZx.PKTCNT == 0))
{
Reset Error Count
De-allocate Channel
}
else
{
Unmask
CHH
Disable Channel
}
}
else
if (
TXERR
or
BBERR
)
{
Increment Error Count
Unmask
CHH
Disable Channel
}
else
if (
CHH
)
{
Mask
CHH
if (Transfer Done or (Error_count == 3))
{
De-allocate Channel
}
else
{
Re-initialize Channel
}
}