summaryrefslogtreecommitdiffstatshomepage
path: root/stm/usb.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-24 01:12:04 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-24 01:12:04 +0000
commit2ee55c312d35f17216c0e770e029a2044863bdfd (patch)
treec6b08abb6896b3466d98a032fdad8bb072c0639c /stm/usb.h
parent790eed6f93dc12df40715ad1062b5ce01badcbd9 (diff)
downloadmicropython-2ee55c312d35f17216c0e770e029a2044863bdfd.tar.gz
micropython-2ee55c312d35f17216c0e770e029a2044863bdfd.zip
stm: Add option to pyb_usb_dev_init() to use USB HID interface.
With this option selected, only HID on its own works, not VCP+HID.
Diffstat (limited to 'stm/usb.h')
-rw-r--r--stm/usb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/stm/usb.h b/stm/usb.h
index 1f7fa18096..a0fb153240 100644
--- a/stm/usb.h
+++ b/stm/usb.h
@@ -4,7 +4,10 @@
#define VCP_CHAR_CTRL_C (3)
#define VCP_CHAR_CTRL_D (4)
-void pyb_usb_dev_init(void);
+#define PYB_USB_DEV_VCP_MSC (0)
+#define PYB_USB_DEV_HID (1)
+
+void pyb_usb_dev_init(int usb_dev_type);
bool usb_vcp_is_enabled(void);
bool usb_vcp_is_connected(void);
void usb_vcp_set_interrupt_char(int c);