Fork of https://developer.mbed.org/users/bscott/code/STM32_USBDevice/

Fork of STM32_USBDevice by Bradley Scott

Revision:
33:f85ada5a4cef
Parent:
31:5bf05f9b3c7b
Child:
45:0f216c4e75e5
--- a/USBDevice/USBHAL_STM32F4.cpp	Mon Oct 06 11:00:28 2014 +0100
+++ b/USBDevice/USBHAL_STM32F4.cpp	Wed Oct 22 08:45:20 2014 +0100
@@ -48,7 +48,7 @@
     // Enable power and clocking
     RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN;
 
-#if defined(TARGET_STM32F407VG)
+#if defined(TARGET_STM32F407VG) || defined(TARGET_STM32F401RE)
     pin_function(PA_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_OTG_FS));
     pin_function(PA_9, STM_PIN_DATA(STM_MODE_INPUT, GPIO_PULLDOWN, GPIO_AF10_OTG_FS));
     pin_function(PA_10, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_PULLUP, GPIO_AF10_OTG_FS));