aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/other/usb_dfu/usbdfu.c
diff options
context:
space:
mode:
authorJeff Ciesielski2012-11-07 11:49:10 -0800
committerJeff Ciesielski2012-11-07 11:49:10 -0800
commit1768df7edae1cd430183c03f3d0ad7f7b4d13c90 (patch)
tree06f9b150cb137954d034a15f750a3a13fc8691ca /examples/stm32/f1/other/usb_dfu/usbdfu.c
parente5cf92b9aee4ce70f000961309d4fb9a9222a7b5 (diff)
parent720e85f850064ad6ab3e79101b972e43d4e31ef6 (diff)
Merge pull request #2 from ndreys/staging
Fix for USB string descriptors/USB iSerialNumber helper functions
Diffstat (limited to 'examples/stm32/f1/other/usb_dfu/usbdfu.c')
-rw-r--r--examples/stm32/f1/other/usb_dfu/usbdfu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/stm32/f1/other/usb_dfu/usbdfu.c b/examples/stm32/f1/other/usb_dfu/usbdfu.c
index 0211a47..f30783f 100644
--- a/examples/stm32/f1/other/usb_dfu/usbdfu.c
+++ b/examples/stm32/f1/other/usb_dfu/usbdfu.c
@@ -244,6 +244,8 @@ int main(void)
AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON;
gpio_set_mode(GPIOA, GPIO_MODE_INPUT, 0, GPIO15);
+ rcc_peripheral_enable_clock(&RCC_AHBENR, RCC_AHBENR_OTGFSEN);
+
usbd_init(&stm32f107_usb_driver, &dev, &config, usb_strings);
usbd_set_control_buffer_size(sizeof(usbd_control_buffer));
usbd_register_control_callback(