Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F103C8T6_WebUSBDFU STM32F103C8T6_USBDFU STM32F103C8T6_USBDFU dfu_usb_stm32f103
Fork of USBDevice_STM32F103 by
Revision 33:f85ada5a4cef, committed 2014-10-22
- Comitter:
- mbed_official
- Date:
- Wed Oct 22 08:45:20 2014 +0100
- Parent:
- 32:37f14e05bfd7
- Child:
- 34:a4e9ddc2e2af
- Commit message:
- Synchronized with git revision 08d90dc0bfd5b00c88706f49d77455c47fc7f16b
Full URL: https://github.com/mbedmicro/mbed/commit/08d90dc0bfd5b00c88706f49d77455c47fc7f16b/
[USB] STM32F401RE - USBDevice support addition
Changed in this revision
| USBDevice/USBHAL_STM32F4.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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));
