Adding more servos
[inav.git] / src / main / vcpf4 / stm32f4xx_it.c
blobb7f01a04e89a674b8289eee0b76f731119d903d9
1 #include "stm32f4xx_it.h"
2 #include "stm32f4xx_conf.h"
4 #include "usb_core.h"
5 #include "usbd_core.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);
14 #endif
16 /**
17 * @brief This function handles NMI exception.
18 * @param None
19 * @retval None
21 void NMI_Handler(void)
25 /**
26 * @brief This function handles SVCall exception.
27 * @param None
28 * @retval None
30 void SVC_Handler(void)
34 /**
35 * @brief This function handles Debug Monitor exception.
36 * @param None
37 * @retval None
39 void DebugMon_Handler(void)
43 /**
44 * @brief This function handles PendSVC exception.
45 * @param None
46 * @retval None
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 /******************************************************************************/
59 #ifdef USE_USB_OTG_FS
60 void OTG_FS_WKUP_IRQHandler(void)
62 if (USB_OTG_dev.cfg.low_power)
64 *(uint32_t *)(0xE000ED10) &= 0xFFFFFFF9 ;
65 SystemInit();
66 USB_OTG_UngateClock(&USB_OTG_dev);
68 EXTI_ClearITPendingBit(EXTI_Line18);
70 #endif
72 /**
73 * @brief This function handles EXTI15_10_IRQ Handler.
74 * @param None
75 * @retval None
77 #ifdef USE_USB_OTG_HS
78 void OTG_HS_WKUP_IRQHandler(void)
80 if (USB_OTG_dev.cfg.low_power)
82 *(uint32_t *)(0xE000ED10) &= 0xFFFFFFF9 ;
83 SystemInit();
84 USB_OTG_UngateClock(&USB_OTG_dev);
86 EXTI_ClearITPendingBit(EXTI_Line20);
88 #endif
90 /**
91 * @brief This function handles OTG_HS Handler.
92 * @param None
93 * @retval None
95 #ifdef USE_USB_OTG_HS
96 void OTG_HS_IRQHandler(void)
97 #else
98 void OTG_FS_IRQHandler(void)
99 #endif
101 USBD_OTG_ISR_Handler (&USB_OTG_dev);
104 #ifdef USB_OTG_HS_DEDICATED_EP1_ENABLED
106 * @brief This function handles EP1_IN Handler.
107 * @param None
108 * @retval None
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.
117 * @param None
118 * @retval None
120 void OTG_HS_EP1_OUT_IRQHandler(void)
122 USBD_OTG_EP1OUT_ISR_Handler (&USB_OTG_dev);
124 #endif