From 40192caee01bd5fe6c8ed2c61798c95782ccfdd2 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Fri, 24 Jun 2016 00:47:47 +0200 Subject: let the user build an array of lld drivers Signed-off-by: Amir Hammad --- src/demo.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/demo.c') diff --git a/src/demo.c b/src/demo.c index 76c33fd..f6cccf5 100644 --- a/src/demo.c +++ b/src/demo.c @@ -214,7 +214,12 @@ int main(void) * * Pass array of supported device drivers */ - usbh_init(usbh_lld_stm32f4_drivers, device_drivers); + const void *lld_drivers[] = { + &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 + 0 + }; + usbh_init(lld_drivers, device_drivers); gpio_clear(GPIOD, GPIO13); LOG_PRINTF("USB init complete\n"); -- cgit