summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-18 23:50:26 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-18 23:50:26 +0000
commit857ad01b07081b33508b8ab4a6e1742324845c99 (patch)
tree534344c9361789d9f8037543a8a5b5ef97757756
parentbbff75e5dded5ff7f387265faf62c0df6c2d03df (diff)
downloadnuttx-857ad01b07081b33508b8ab4a6e1742324845c99.tar.gz
nuttx-857ad01b07081b33508b8ab4a6e1742324845c99.tar.bz2
nuttx-857ad01b07081b33508b8ab4a6e1742324845c99.zip
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
-rw-r--r--nuttx/arch/mips/src/pic32mx/pic32mx-usbdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-usbdev.c b/nuttx/arch/mips/src/pic32mx/pic32mx-usbdev.c
index 50b138c6c..e1c3e7751 100644
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-usbdev.c
+++ b/nuttx/arch/mips/src/pic32mx/pic32mx-usbdev.c
@@ -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. */
#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
- index = EP0_IN_EVEN;
+ index = EP0_OUT_EVEN;
#endif
bdt = &g_bdt[index];
priv->eplist[0].bdtout = bdt;