diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-22 21:13:36 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-22 21:13:36 +0100 |
commit | 0c5827fc654b7722964483f58600e129e21c1013 (patch) | |
tree | 08018024bf61b9ee8d047b9237cd5f1e3277217b /stm/lib | |
parent | bb5316b9056720a67c25934aebb5a68e4772a7da (diff) | |
download | micropython-0c5827fc654b7722964483f58600e129e21c1013.tar.gz micropython-0c5827fc654b7722964483f58600e129e21c1013.zip |
stm: improved GC, and cooked output for VCP.
Diffstat (limited to 'stm/lib')
-rw-r--r-- | stm/lib/usb_regs.h | 2 | ||||
-rw-r--r-- | stm/lib/usbd_conf.h | 2 |
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__ |