summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-06-24 00:46:40 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-06-25 10:09:54 +0200
commit0432429aa6bcecfeeeccf4ba9b4cca28206b4863 (patch)
tree12515fc9b2c07379b05b4e0979c1428f916a92e4
parent4bf0db8f7bac51cda88d5033a1657dc3b85b7c66 (diff)
downloadsecure-hid-0432429aa6bcecfeeeccf4ba9b4cca28206b4863.tar.gz
secure-hid-0432429aa6bcecfeeeccf4ba9b4cca28206b4863.tar.bz2
secure-hid-0432429aa6bcecfeeeccf4ba9b4cca28206b4863.zip
move USE_STM32f4_USBH_DRIVER_HS/FS from config.mk to usbh_config.h
Leave the behaviour as before: Default: FullSpeed Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r--README.md2
-rw-r--r--config.mk6
-rw-r--r--include/usbh_config.h6
-rw-r--r--src/demo.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index 5dbbc9e..31e32ab 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ fetch libopencm3 submodule and compile needed libraries
**How to compile demo**
-Edit config.mk for library configuration (By default Full speed OTG periphery on stm32f4 is supported)
+Edit usbh_config.h to configure the library (By default Full speed OTG periphery on stm32f4 is supported)
> ./compileDemo.sh
diff --git a/config.mk b/config.mk
index 03fae74..3ba462b 100644
--- a/config.mk
+++ b/config.mk
@@ -2,9 +2,3 @@
USER_CONFIG =
-
-# Uncomment to enable OTG_HS support - low level driver
-#USER_CONFIG += -DUSE_STM32F4_USBH_DRIVER_HS
-
-# Uncomment to enable OTG_FS support - low level driver
-USER_CONFIG += -DUSE_STM32F4_USBH_DRIVER_FS
diff --git a/include/usbh_config.h b/include/usbh_config.h
index 4fa38cb..7bf800b 100644
--- a/include/usbh_config.h
+++ b/include/usbh_config.h
@@ -59,4 +59,10 @@
#error USBH_MAX_DEVICES > 127
#endif
+// Uncomment to enable OTG_HS support - low level driver
+// #define USE_STM32F4_USBH_DRIVER_HS
+
+// Uncomment to enable OTG_FS support - low level driver
+#define USE_STM32F4_USBH_DRIVER_FS
+
#endif
diff --git a/src/demo.c b/src/demo.c
index ae8da53..76c33fd 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -210,7 +210,7 @@ int main(void)
/**
* Pass array of supported low level drivers
* In case of stm32f407, there are up to two supported OTG hosts on one chip.
- * Each one can be enabled or disabled in config.mk - optimization for speed
+ * Each one can be enabled or disabled in usbh_config.h - optimization for speed
*
* Pass array of supported device drivers
*/