52 #ifdef USB_OTG_FS_LOW_PWR_MGMT_SUPPORT 101 #ifdef USE_USB_OTG_HS 110 #ifdef USB_OTG_HS_DEDICATED_EP1_ENABLED 132 #pragma GCC diagnostic push 133 #pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" 137 const uint32_t utime = (120 * usec / 7);
140 if ( ++count > utime )
147 #pragma GCC diagnostic pop #define NVIC_PriorityGroup_1
void USB_OTG_BSP_DriveVBUS(USB_OTG_CORE_HANDLE *pdev, uint8_t state)
Specific api's relative to the used hardware platform.
void GPIO_PinAFConfig(GPIO_TypeDef *GPIOx, uint16_t GPIO_PinSource, uint8_t GPIO_AF)
Changes the mapping of the specified pin.
void NVIC_Init(NVIC_InitTypeDef *NVIC_InitStruct)
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
Configures the priority grouping: pre-emption priority and subpriority.
EXTI Init Structure definition.
GPIOOType_TypeDef GPIO_OType
GPIOSpeed_TypeDef GPIO_Speed
void USB_OTG_BSP_Init(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_BSP_Init Initilizes BSP configurations.
void USB_OTG_BSP_uDelay(const uint32_t usec)
USB_OTG_BSP_uDelay This function provides delay time in micro sec.
void RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState)
Enables or disables the AHB1 peripheral clock.
void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)
Enables or disables the High Speed APB (APB2) peripheral clock.
uint8_t NVIC_IRQChannelSubPriority
NVIC Init Structure definition.
void GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_InitStruct)
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct.
#define RCC_AHB2Periph_OTG_FS
void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
Forces or releases Low Speed APB (APB1) peripheral reset.
#define RCC_APB2Periph_SYSCFG
void RCC_AHB2PeriphClockCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState)
Enables or disables the AHB2 peripheral clock.
GPIO Init structure definition.
#define RCC_APB1Periph_PWR
#define RCC_AHB1Periph_GPIOA
void USB_OTG_BSP_mDelay(const uint32_t msec)
USB_OTG_BSP_mDelay This function provides delay time in milli sec.
FunctionalState NVIC_IRQChannelCmd
GPIOMode_TypeDef GPIO_Mode
uint8_t NVIC_IRQChannelPreemptionPriority
void USB_OTG_BSP_EnableInterrupt(USB_OTG_CORE_HANDLE *pdev)
USB_OTG_BSP_EnableInterrupt Enabele USB Global interrupt.
void EXTI_ClearITPendingBit(uint32_t EXTI_Line)
Clears the EXTI's line pending bits.
USB Device configuration file.
GPIOPuPd_TypeDef GPIO_PuPd
void USB_OTG_BSP_ConfigVBUS(USB_OTG_CORE_HANDLE *pdev)