summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-09-09 18:36:38 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-09-11 13:30:10 +0200
commited70a1efa3335b6bf64c8c6a6f5be4dc25bdd9b7 (patch)
tree7643a22adfa652fd33b973e06d603f896e60b7e3 /src/demo.c
parent28ccd32608bb3daf0f8137eb1521f382f69d120d (diff)
downloadsecure-hid-ed70a1efa3335b6bf64c8c6a6f5be4dc25bdd9b7.tar.gz
secure-hid-ed70a1efa3335b6bf64c8c6a6f5be4dc25bdd9b7.tar.bz2
secure-hid-ed70a1efa3335b6bf64c8c6a6f5be4dc25bdd9b7.zip
Switch to cmake build system
* use tinyprintf * ability to configure project via ccmake Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/demo.c b/src/demo.c
index 5d829ac..3fedbd9 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -215,8 +215,13 @@ int main(void)
* Pass array of supported device drivers
*/
const void *lld_drivers[] = {
+#ifdef USE_STM32F4_USBH_DRIVER_FS
usbh_lld_stm32f4_driver_fs, // Make sure USE_STM32F4_USBH_DRIVER_FS is defined in usbh_config.h
-// usbh_lld_stm32f4_driver_hs, // Make sure USE_STM32F4_USBH_DRIVER_HS is defined in usbh_config.h
+#endif
+
+#ifdef USE_STM32F4_USBH_DRIVER_HS
+ usbh_lld_stm32f4_driver_hs, // Make sure USE_STM32F4_USBH_DRIVER_HS is defined in usbh_config.h
+#endif
0
};
usbh_init(lld_drivers, device_drivers);