USB on-the-go full-speed (OTG_FS)
RM0090
1336/1731
DocID018909 Rev 11
}
}
else
if (
STALL
or
FRMOR
or
NAK
or
DTERR
or
BBERR
)
{
Mask
ACK
Unmask
CHH
Disable Channel
if
(
STALL
or
BBERR
)
{
Reset Error Count
Transfer Done = 1
}
else
if (!
FRMOR
)
{
Reset Error Count
}
}
else
if (
TXERR
)
{
Increment Error Count
Unmask
ACK
Unmask
CHH
Disable Channel
}
else
if (
CHH
)
{
Mask
CHH
if (Transfer Done or (Error_count == 3))
{
De-allocate Channel
}
else
Re-initialize Channel (in next b_interval - 1 /Frame)
}
}
else
if (
ACK
)
{
Reset Error Count
Mask
ACK