aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/stm32-h107/usb_simple
diff options
context:
space:
mode:
authorGareth McMullin2011-12-17 14:11:39 +1300
committerGareth McMullin2011-12-17 14:11:39 +1300
commit651917aeb4b76afbb6c4a859e9a7aab4978b5008 (patch)
tree913f0c43ab18c4056eedcabd08822ff6f0b199c6 /examples/stm32/f1/stm32-h107/usb_simple
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 'examples/stm32/f1/stm32-h107/usb_simple')
-rw-r--r--examples/stm32/f1/stm32-h107/usb_simple/usb_simple.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/stm32/f1/stm32-h107/usb_simple/usb_simple.c b/examples/stm32/f1/stm32-h107/usb_simple/usb_simple.c
index c488b1c..0b30a7e 100644
--- a/examples/stm32/f1/stm32-h107/usb_simple/usb_simple.c
+++ b/examples/stm32/f1/stm32-h107/usb_simple/usb_simple.c
@@ -99,6 +99,7 @@ int main(void)
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPAEN);
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN);
+ rcc_peripheral_enable_clock(&RCC_AHBENR, RCC_AHBENR_OTGFSEN);
/* LED output */
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_2_MHZ,