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>
This commit is contained in:
parent
4bf0db8f7b
commit
0432429aa6
4 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue