mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 16:20:21 +00:00
arch/sim: fix the compile error
USB_EP_MAXP_MASK ==> USB_EP_MAX_PACKET_MASK Signed-off-by: v-tangmeng <v-tangmeng@xiaomi.com>
This commit is contained in:
parent
bc2daa48cc
commit
2c24420a1c
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ static int sim_usbhost_epalloc(struct usbhost_driver_s *drvr,
|
|||
epinfo->dirin = epdesc->in;
|
||||
epinfo->devaddr = hport->funcaddr;
|
||||
epinfo->interval = epdesc->interval;
|
||||
epinfo->maxpacket = (epdesc->mxpacketsize & USB_EP_MAXP_MASK) *
|
||||
epinfo->maxpacket = (epdesc->mxpacketsize & USB_EP_MAX_PACKET_MASK) *
|
||||
(USB_EP_MAX_PACKET_MULT(epdesc->mxpacketsize) + 1);
|
||||
epinfo->xfrtype = epdesc->xfrtype;
|
||||
epinfo->speed = hport->speed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue