mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
PIC32 USB, using IN BDTs where OUT BDTs should be used
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4311 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -2076,9 +2076,9 @@ static void pic32mx_ep0transfer(struct pic32mx_usbdev_s *priv, uint16_t status)
|
|||||||
/* It was an EP0 OUT transaction. Get the index to the BDT. */
|
/* It was an EP0 OUT transaction. Get the index to the BDT. */
|
||||||
|
|
||||||
#if CONFIG_USB_PINGPONG
|
#if CONFIG_USB_PINGPONG
|
||||||
index = ((status & USB_STAT_PPBI) == 0 ? EP0_IN_EVEN : EP0_IN_ODD);
|
index = ((status & USB_STAT_PPBI) == 0 ? EP0_OUT_EVEN : EP0_OUT_ODD);
|
||||||
#else
|
#else
|
||||||
index = EP0_IN_EVEN;
|
index = EP0_OUT_EVEN;
|
||||||
#endif
|
#endif
|
||||||
bdt = &g_bdt[index];
|
bdt = &g_bdt[index];
|
||||||
priv->eplist[0].bdtout = bdt;
|
priv->eplist[0].bdtout = bdt;
|
||||||
|
|||||||
Reference in New Issue
Block a user