aboutsummaryrefslogtreecommitdiff
path: root/lib/usb
diff options
context:
space:
mode:
authorGareth McMullin2011-12-17 14:11:39 +1300
committerGareth McMullin2011-12-17 14:11:39 +1300
commit651917aeb4b76afbb6c4a859e9a7aab4978b5008 (patch)
tree913f0c43ab18c4056eedcabd08822ff6f0b199c6 /lib/usb
parentd630d8397236b50ef68653b71348f39c1c48ce0b (diff)
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.
Diffstat (limited to 'lib/usb')
-rw-r--r--lib/usb/usb_f107.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/usb/usb_f107.c b/lib/usb/usb_f107.c
index 008fa5f..0797cba 100644
--- a/lib/usb/usb_f107.c
+++ b/lib/usb/usb_f107.c
@@ -18,7 +18,6 @@
*/
#include <string.h>
-#include <libopencm3/stm32/f1/rcc.h>
#include <libopencm3/cm3/common.h>
#include <libopencm3/stm32/tools.h>
#include <libopencm3/stm32/otg_fs.h>
@@ -66,7 +65,6 @@ 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;