From 651917aeb4b76afbb6c4a859e9a7aab4978b5008 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Sat, 17 Dec 2011 14:11:39 +1300 Subject: 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. --- examples/stm32/f1/stm32-h107/usb_simple/usb_simple.c | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/stm32/f1/stm32-h107') 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, -- cgit v1.2.3