aboutsummaryrefslogtreecommitdiffstats
path: root/core/usb/usb_config.h
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-04-25 00:51:43 -0400
committerbnewbold <bnewbold@robocracy.org>2010-05-20 22:09:15 -0400
commit4dcbd9612275d7957484f4a87e16f0bb09484ee6 (patch)
tree92909ce42b9baeb7cbd3e8dbe8e760bfb1914787 /core/usb/usb_config.h
parent6ad3acd15e9859ac9bc77c1eb04d67108dcc5a03 (diff)
downloadlibrambutan-4dcbd9612275d7957484f4a87e16f0bb09484ee6.tar.gz
librambutan-4dcbd9612275d7957484f4a87e16f0bb09484ee6.zip
FINALLY figured out the tx/rx bugs, so the whole stack is officially working. for future reference its ESSENTIAL that you set the EPNUM flag of the global device struct appropriately regardless of whether or not you enable or configure more endpoints.
Diffstat (limited to 'core/usb/usb_config.h')
-rw-r--r--core/usb/usb_config.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/usb/usb_config.h b/core/usb/usb_config.h
index 12d21c8..5cdbcd7 100644
--- a/core/usb/usb_config.h
+++ b/core/usb/usb_config.h
@@ -17,16 +17,16 @@
#define VCOM_CTRL_TX_ADDR 0x80
#define VCOM_CTRL_EPSIZE 0x40
-#define VCOM_NOTIFICATION_ENDP ENDP2
-#define VCOM_NOTIFICATION_EPNUM 0x02
-#define VCOM_NOTIFICATION_ADDR 0x100
-#define VCOM_NOTIFICATION_EPSIZE 0x40
-
#define VCOM_TX_ENDP ENDP1
#define VCOM_TX_EPNUM 0x01
#define VCOM_TX_ADDR 0xC0
#define VCOM_TX_EPSIZE 0x40
+#define VCOM_NOTIFICATION_ENDP ENDP2
+#define VCOM_NOTIFICATION_EPNUM 0x02
+#define VCOM_NOTIFICATION_ADDR 0x100
+#define VCOM_NOTIFICATION_EPSIZE 0x40
+
#define VCOM_RX_ENDP ENDP3
#define VCOM_RX_EPNUM 0x03
#define VCOM_RX_ADDR 0x110
@@ -34,7 +34,7 @@
#define bMaxPacketSize 0x40 /* 64B, maximum for USB FS Devices */
-#define NUM_ENDPTS 0x03
+#define NUM_ENDPTS 0x04
/* handle all usb interrupts */
#define ISR_MSK ( CNTR_CTRM | \