Il y avait des problèmes dans la libraire...
Fork of USBDEVICE by
Diff: USBDevice/USBHAL_STM32F4.cpp
- Revision:
- 3:d9c7334e2183
- Parent:
- 1:2a3ae13b45ef
--- a/USBDevice/USBHAL_STM32F4.cpp Thu Dec 15 17:40:59 2016 +0100 +++ b/USBDevice/USBHAL_STM32F4.cpp Wed Feb 15 09:48:15 2017 +0100 @@ -48,7 +48,7 @@ // Enable power and clocking RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN; -#if defined(TARGET_STM32F407VG) || defined(TARGET_STM32F401RE) || defined(TARGET_STM32F411RE) || defined(TARGET_STM32F429ZI) +#if defined(TARGET_STM32F407VG) || defined(TARGET_STM32F401RE) || defined(TARGET_STM32F411RE) || defined(TARGET_STM32F412ZG) || defined(TARGET_STM32F429ZI) 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));