1 #include "stm32f4xx_it.h"
2 #include "stm32f4xx_conf.h"
6 #include "usbd_cdc_core.h"
8 extern uint32_t USBD_OTG_ISR_Handler (USB_OTG_CORE_HANDLE
*pdev
);
9 extern USB_OTG_CORE_HANDLE USB_OTG_dev
;
11 #ifdef USB_OTG_HS_DEDICATED_EP1_ENABLED
12 extern uint32_t USBD_OTG_EP1IN_ISR_Handler (USB_OTG_CORE_HANDLE
*pdev
);
13 extern uint32_t USBD_OTG_EP1OUT_ISR_Handler (USB_OTG_CORE_HANDLE
*pdev
);
17 * @brief This function handles NMI exception.
21 void NMI_Handler(void)
26 * @brief This function handles SVCall exception.
30 void SVC_Handler(void)
35 * @brief This function handles Debug Monitor exception.
39 void DebugMon_Handler(void)
44 * @brief This function handles PendSVC exception.
48 void PendSV_Handler(void)
52 /******************************************************************************/
53 /* STM32F4xx Peripherals Interrupt Handlers */
54 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
55 /* available peripheral interrupt handler's name please refer to the startup */
56 /* file (startup_stm32f4xx.s). */
57 /******************************************************************************/
60 void OTG_FS_WKUP_IRQHandler(void)
62 if (USB_OTG_dev
.cfg
.low_power
)
64 *(uint32_t *)(0xE000ED10) &= 0xFFFFFFF9 ;
66 USB_OTG_UngateClock(&USB_OTG_dev
);
68 EXTI_ClearITPendingBit(EXTI_Line18
);
73 * @brief This function handles EXTI15_10_IRQ Handler.
78 void OTG_HS_WKUP_IRQHandler(void)
80 if (USB_OTG_dev
.cfg
.low_power
)
82 *(uint32_t *)(0xE000ED10) &= 0xFFFFFFF9 ;
84 USB_OTG_UngateClock(&USB_OTG_dev
);
86 EXTI_ClearITPendingBit(EXTI_Line20
);
91 * @brief This function handles OTG_HS Handler.
96 void OTG_HS_IRQHandler(void)
98 void OTG_FS_IRQHandler(void)
101 USBD_OTG_ISR_Handler (&USB_OTG_dev
);
104 #ifdef USB_OTG_HS_DEDICATED_EP1_ENABLED
106 * @brief This function handles EP1_IN Handler.
110 void OTG_HS_EP1_IN_IRQHandler(void)
112 USBD_OTG_EP1IN_ISR_Handler (&USB_OTG_dev
);
116 * @brief This function handles EP1_OUT Handler.
120 void OTG_HS_EP1_OUT_IRQHandler(void)
122 USBD_OTG_EP1OUT_ISR_Handler (&USB_OTG_dev
);