From 284be9303748d640204b22c50183f9b49e86aa83 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Sat, 29 Oct 2011 23:57:10 +1300 Subject: Restored OTG clock enable in RCC in f107 usb init. --- lib/usb/usb_f107.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/usb/usb_f107.c b/lib/usb/usb_f107.c index 5e17ebf..20db759 100644 --- a/lib/usb/usb_f107.c +++ b/lib/usb/usb_f107.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -64,6 +65,7 @@ const struct _usbd_driver stm32f107_usb_driver = { /** Initialize the USB device controller hardware of the STM32. */ static void stm32f107_usbd_init(void) { + rcc_peripheral_enable_clock(&RCC_AHBENR, RCC_AHBENR_OTGFSEN); OTG_FS_GINTSTS = OTG_FS_GINTSTS_MMIS; OTG_FS_GUSBCFG |= OTG_FS_GUSBCFG_PHYSEL; -- cgit v1.2.3