summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'stm/lib')
-rw-r--r--stm/lib/usb_regs.h2
-rw-r--r--stm/lib/usbd_conf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/stm/lib/usb_regs.h b/stm/lib/usb_regs.h
index 323e870560..d3ea8d821a 100644
--- a/stm/lib/usb_regs.h
+++ b/stm/lib/usb_regs.h
@@ -64,7 +64,7 @@
#define USB_OTG_DATA_FIFO_SIZE 0x1000
-#define USB_OTG_MAX_TX_FIFOS 15
+#define USB_OTG_MAX_TX_FIFOS 4 // XXX check we can make it this small!
#define USB_OTG_HS_MAX_PACKET_SIZE 512
#define USB_OTG_FS_MAX_PACKET_SIZE 64
diff --git a/stm/lib/usbd_conf.h b/stm/lib/usbd_conf.h
index 60243d2f6a..ad4cd73c85 100644
--- a/stm/lib/usbd_conf.h
+++ b/stm/lib/usbd_conf.h
@@ -18,6 +18,6 @@
#define MSC_IN_EP 0x83
#define MSC_OUT_EP 0x03
#define MSC_MAX_PACKET 64
-#define MSC_MEDIA_PACKET 4096
+#define MSC_MEDIA_PACKET 2048 /* XXX was 4096; how small can we make it? */
#endif //__USBD_CONF__H__