Added USB example for stm32f4.

Moved clock enable for OTG_FS back into applications.  This and gpio config
are the only differences between f107 and f2xx/f4xx.
This commit is contained in:
Gareth McMullin
2011-12-17 14:11:39 +13:00
parent d630d83972
commit 651917aeb4
10 changed files with 275 additions and 2 deletions

View File

@@ -25,6 +25,7 @@
typedef struct _usbd_driver usbd_driver;
extern const usbd_driver stm32f103_usb_driver;
extern const usbd_driver stm32f107_usb_driver;
#define otgfs_usb_driver stm32f107_usb_driver
/* Static buffer for control transactions:
* This is defined as weak in the library, applicaiton