From 038df4318362325b5b6b77f7582fb6373a240f3c Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 30 Mar 2014 00:00:15 +0000 Subject: 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). --- stmhal/led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/led.c') diff --git a/stmhal/led.c b/stmhal/led.c index 557f54538..5ff50fbb8 100644 --- a/stmhal/led.c +++ b/stmhal/led.c @@ -1,6 +1,6 @@ #include #include -#include "usbd_cdc_msc.h" +#include "usbd_cdc_msc_hid.h" #include "usbd_cdc_interface.h" #include "nlr.h" -- cgit v1.2.3