mirror of
https://github.com/apache/nuttx.git
synced 2026-08-05 06:10:27 +00:00
arch/arm/sc/lpc16xx: Extends commit 456a258c23: Freeing endpoints should be set the same allocations as when endpoint was allocated.
This commit is contained in:
parent
b555b302af
commit
2d4e9c1eae
1 changed files with 2 additions and 2 deletions
|
|
@ -3077,10 +3077,10 @@ static void lpc17_freeep(FAR struct usbdev_s *dev, FAR struct usbdev_ep_s *ep)
|
|||
|
||||
if (priv && privep)
|
||||
{
|
||||
/* Mark the endpoint as available */
|
||||
/* Mark the IN/OUT endpoint as available */
|
||||
|
||||
flags = enter_critical_section();
|
||||
priv->epavail |= (1 << privep->epphy);
|
||||
priv->epavail |= (3 << (privep->epphy & ~1));
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue