summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/stm32f4xx_it.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-30 00:00:15 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-30 00:00:15 +0000
commit038df4318362325b5b6b77f7582fb6373a240f3c (patch)
tree412143786f23fc67681f44f0673ee72f2a6a7f0d /stmhal/stm32f4xx_it.c
parentd40d8f1e168c5bc3cf52f51d9592425574e7e6a9 (diff)
downloadmicropython-038df4318362325b5b6b77f7582fb6373a240f3c.tar.gz
micropython-038df4318362325b5b6b77f7582fb6373a240f3c.zip
stmhal: Implement selector for USB device mode; improve boot up.
Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID. Choice is made by an option in boot.py, with default being CDC+MSC. HID+MSC is not currently supported, but should be easy to implement. Boot up now has ability to change the reset mode: hold down USR switch while booting and LEDs will count from 1 to 7 to indicate the boot mode. Release USR when correct mode is selected. Current modes are 1 (normal boot), 2 (safe mode), 3 (reset FS mode).
Diffstat (limited to 'stmhal/stm32f4xx_it.c')
-rw-r--r--stmhal/stm32f4xx_it.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/stm32f4xx_it.c b/stmhal/stm32f4xx_it.c
index bd324a030d..e74b1c6c75 100644
--- a/stmhal/stm32f4xx_it.c
+++ b/stmhal/stm32f4xx_it.c
@@ -42,7 +42,7 @@
#include "stm32f4xx_it.h"
#include "stm32f4xx_hal.h"
-#include "usbd_cdc_msc.h"
+#include "usbd_cdc_msc_hid.h"
#include "usbd_cdc_interface.h"
#include "misc.h"