[4.4.2] Remove 15 m/s limit on estimated vario (#12788)
[betaflight.git] / src / main / vcp / stm32_it.c
blobee783ec7b074e7796936ca3e1b03540d40d01987
1 /**
2 ******************************************************************************
3 * @file stm32_it.c
4 * @author MCD Application Team
5 * @version V4.0.0
6 * @date 21-January-2013
7 * @brief Main Interrupt Service Routines.
8 * This file provides template for all exceptions handler and peripherals
9 * interrupt service routine.
10 ******************************************************************************
11 * @attention
13 * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
15 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
16 * You may not use this file except in compliance with the License.
17 * You may obtain a copy of the License at:
19 * http://www.st.com/software_license_agreement_liberty_v2
21 * Unless required by applicable law or agreed to in writing, software
22 * distributed under the License is distributed on an "AS IS" BASIS,
23 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 * See the License for the specific language governing permissions and
25 * limitations under the License.
27 ******************************************************************************
30 /* Includes ------------------------------------------------------------------*/
32 #include "platform.h"
34 #include "hw_config.h"
35 #include "stm32_it.h"
36 #include "usb_lib.h"
37 #include "vcp/usb_istr.h"
39 /* Private typedef -----------------------------------------------------------*/
40 /* Private define ------------------------------------------------------------*/
41 /* Private macro -------------------------------------------------------------*/
42 /* Private variables ---------------------------------------------------------*/
43 /* Private function prototypes -----------------------------------------------*/
44 /* Private functions ---------------------------------------------------------*/
45 /******************************************************************************/
46 /* Cortex-M Processor Exceptions Handlers */
47 /******************************************************************************/
49 /*******************************************************************************
50 * Function Name : NMI_Handler
51 * Description : This function handles NMI exception.
52 * Input : None
53 * Output : None
54 * Return : None
55 *******************************************************************************/
56 void NMI_Handler(void)
62 /*******************************************************************************
63 * Function Name : MemManage_Handler
64 * Description : This function handles Memory Manage exception.
65 * Input : None
66 * Output : None
67 * Return : None
68 *******************************************************************************/
69 void MemManage_Handler(void)
71 /* Go to infinite loop when Memory Manage exception occurs */
72 while (1) {
76 /*******************************************************************************
77 * Function Name : BusFault_Handler
78 * Description : This function handles Bus Fault exception.
79 * Input : None
80 * Output : None
81 * Return : None
82 *******************************************************************************/
83 void BusFault_Handler(void)
85 /* Go to infinite loop when Bus Fault exception occurs */
86 while (1) {
90 /*******************************************************************************
91 * Function Name : UsageFault_Handler
92 * Description : This function handles Usage Fault exception.
93 * Input : None
94 * Output : None
95 * Return : None
96 *******************************************************************************/
97 void UsageFault_Handler(void)
99 /* Go to infinite loop when Usage Fault exception occurs */
100 while (1) {
104 /*******************************************************************************
105 * Function Name : SVC_Handler
106 * Description : This function handles SVCall exception.
107 * Input : None
108 * Output : None
109 * Return : None
110 *******************************************************************************/
111 void SVC_Handler(void)
115 /*******************************************************************************
116 * Function Name : DebugMon_Handler
117 * Description : This function handles Debug Monitor exception.
118 * Input : None
119 * Output : None
120 * Return : None
121 *******************************************************************************/
122 void DebugMon_Handler(void)
126 /*******************************************************************************
127 * Function Name : PendSV_Handler
128 * Description : This function handles PendSVC exception.
129 * Input : None
130 * Output : None
131 * Return : None
132 *******************************************************************************/
133 void PendSV_Handler(void)
138 /*******************************************************************************
139 * Function Name : USB_IRQHandler
140 * Description : This function handles USB Low Priority interrupts
141 * requests.
142 * Input : None
143 * Output : None
144 * Return : None
145 *******************************************************************************/
146 #if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS)|| defined (STM32F37X)
147 void USB_LP_IRQHandler(void)
148 #else
149 void USB_LP_CAN1_RX0_IRQHandler(void)
150 #endif
152 USB_Istr();
155 /*******************************************************************************
156 * Function Name : USB_FS_WKUP_IRQHandler
157 * Description : This function handles USB WakeUp interrupt request.
158 * Input : None
159 * Output : None
160 * Return : None
161 *******************************************************************************/
163 #if defined(STM32L1XX_MD) || defined(STM32L1XX_HD)|| defined(STM32L1XX_MD_PLUS)
164 void USB_FS_WKUP_IRQHandler(void)
165 #else
166 void USBWakeUp_IRQHandler(void)
167 #endif
169 EXTI_ClearITPendingBit(EXTI_Line18);