USB on-the-go high-speed (OTG_HS)
RM0090
1490/1731
DocID018909 Rev 11
Transfer Done = 1
Unmask
CHH
Disable Channel
}
}
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