summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/usbd_conf.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-21 23:32:01 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-21 23:32:01 +0000
commit8913c04831c94d2bcb82b0447ab7ccf6b2e346a6 (patch)
treecd87113bd36176bf7af18102064af6be4cfefdd0 /stmhal/usbd_conf.h
parentc070ff24a950cb764c8d51fa69f5a002e49fb3e4 (diff)
downloadmicropython-8913c04831c94d2bcb82b0447ab7ccf6b2e346a6.tar.gz
micropython-8913c04831c94d2bcb82b0447ab7ccf6b2e346a6.zip
stmhal: Add support for USB MSC device.
This gives a functioning, independent MSC device.
Diffstat (limited to 'stmhal/usbd_conf.h')
-rw-r--r--stmhal/usbd_conf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/usbd_conf.h b/stmhal/usbd_conf.h
index 8c02ad0ec2..cc3ad73f98 100644
--- a/stmhal/usbd_conf.h
+++ b/stmhal/usbd_conf.h
@@ -48,6 +48,9 @@
#define USBD_SELF_POWERED 0
#define USBD_DEBUG_LEVEL 0
+// for MSC device
+#define MSC_MEDIA_PACKET 8192
+
/* Exported macro ------------------------------------------------------------*/
/* Memory management macros */
#define USBD_malloc gc_alloc