Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
stm32f4xx_it.cpp
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f4xx_it.c 00004 * @brief Interrupt Service Routines. 00005 ****************************************************************************** 00006 * 00007 * COPYRIGHT(c) 2016 STMicroelectronics 00008 * 00009 * Redistribution and use in source and binary forms, with or without modification, 00010 * are permitted provided that the following conditions are met: 00011 * 1. Redistributions of source code must retain the above copyright notice, 00012 * this list of conditions and the following disclaimer. 00013 * 2. Redistributions in binary form must reproduce the above copyright notice, 00014 * this list of conditions and the following disclaimer in the documentation 00015 * and/or other materials provided with the distribution. 00016 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00017 * may be used to endorse or promote products derived from this software 00018 * without specific prior written permission. 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00021 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00022 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00023 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00024 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00025 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00026 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00027 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00028 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00029 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00030 * 00031 ****************************************************************************** 00032 */ 00033 /* Includes ------------------------------------------------------------------*/ 00034 #include "stm32f4xx_hal.h" 00035 #include "stm32f4xx.h" 00036 #include "stm32f4xx_it.h" 00037 00038 /* USER CODE BEGIN 0 */ 00039 00040 /* USER CODE END 0 */ 00041 00042 /* External variables --------------------------------------------------------*/ 00043 extern PCD_HandleTypeDef hpcd_USB_OTG_FS; 00044 00045 /******************************************************************************/ 00046 /* Cortex-M4 Processor Interruption and Exception Handlers */ 00047 /******************************************************************************/ 00048 00049 /** 00050 * @brief This function handles Non maskable interrupt. 00051 */ 00052 void NMI_Handler(void) 00053 { 00054 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ 00055 00056 /* USER CODE END NonMaskableInt_IRQn 0 */ 00057 /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ 00058 00059 /* USER CODE END NonMaskableInt_IRQn 1 */ 00060 } 00061 00062 /** 00063 * @brief This function handles Hard fault interrupt. 00064 */ 00065 void HardFault_Handler(void) 00066 { 00067 /* USER CODE BEGIN HardFault_IRQn 0 */ 00068 00069 /* USER CODE END HardFault_IRQn 0 */ 00070 while (1) 00071 { 00072 } 00073 /* USER CODE BEGIN HardFault_IRQn 1 */ 00074 00075 /* USER CODE END HardFault_IRQn 1 */ 00076 } 00077 00078 /** 00079 * @brief This function handles Memory management fault. 00080 */ 00081 void MemManage_Handler(void) 00082 { 00083 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ 00084 00085 /* USER CODE END MemoryManagement_IRQn 0 */ 00086 while (1) 00087 { 00088 } 00089 /* USER CODE BEGIN MemoryManagement_IRQn 1 */ 00090 00091 /* USER CODE END MemoryManagement_IRQn 1 */ 00092 } 00093 00094 /** 00095 * @brief This function handles Pre-fetch fault, memory access fault. 00096 */ 00097 void BusFault_Handler(void) 00098 { 00099 /* USER CODE BEGIN BusFault_IRQn 0 */ 00100 00101 /* USER CODE END BusFault_IRQn 0 */ 00102 while (1) 00103 { 00104 } 00105 /* USER CODE BEGIN BusFault_IRQn 1 */ 00106 00107 /* USER CODE END BusFault_IRQn 1 */ 00108 } 00109 00110 /** 00111 * @brief This function handles Undefined instruction or illegal state. 00112 */ 00113 void UsageFault_Handler(void) 00114 { 00115 /* USER CODE BEGIN UsageFault_IRQn 0 */ 00116 00117 /* USER CODE END UsageFault_IRQn 0 */ 00118 while (1) 00119 { 00120 } 00121 /* USER CODE BEGIN UsageFault_IRQn 1 */ 00122 00123 /* USER CODE END UsageFault_IRQn 1 */ 00124 } 00125 00126 /** 00127 * @brief This function handles System service call via SWI instruction. 00128 */ 00129 void SVC_Handler(void) 00130 { 00131 /* USER CODE BEGIN SVCall_IRQn 0 */ 00132 00133 /* USER CODE END SVCall_IRQn 0 */ 00134 /* USER CODE BEGIN SVCall_IRQn 1 */ 00135 00136 /* USER CODE END SVCall_IRQn 1 */ 00137 } 00138 00139 /** 00140 * @brief This function handles Debug monitor. 00141 */ 00142 void DebugMon_Handler(void) 00143 { 00144 /* USER CODE BEGIN DebugMonitor_IRQn 0 */ 00145 00146 /* USER CODE END DebugMonitor_IRQn 0 */ 00147 /* USER CODE BEGIN DebugMonitor_IRQn 1 */ 00148 00149 /* USER CODE END DebugMonitor_IRQn 1 */ 00150 } 00151 00152 /** 00153 * @brief This function handles Pendable request for system service. 00154 */ 00155 void PendSV_Handler(void) 00156 { 00157 /* USER CODE BEGIN PendSV_IRQn 0 */ 00158 00159 /* USER CODE END PendSV_IRQn 0 */ 00160 /* USER CODE BEGIN PendSV_IRQn 1 */ 00161 00162 /* USER CODE END PendSV_IRQn 1 */ 00163 } 00164 00165 /** 00166 * @brief This function handles System tick timer. 00167 */ 00168 void SysTick_Handler(void) 00169 { 00170 /* USER CODE BEGIN SysTick_IRQn 0 */ 00171 00172 /* USER CODE END SysTick_IRQn 0 */ 00173 HAL_IncTick(); 00174 HAL_SYSTICK_IRQHandler(); 00175 /* USER CODE BEGIN SysTick_IRQn 1 */ 00176 00177 /* USER CODE END SysTick_IRQn 1 */ 00178 } 00179 00180 /******************************************************************************/ 00181 /* STM32F4xx Peripheral Interrupt Handlers */ 00182 /* Add here the Interrupt Handlers for the used peripherals. */ 00183 /* For the available peripheral interrupt handler names, */ 00184 /* please refer to the startup file (startup_stm32f4xx.s). */ 00185 /******************************************************************************/ 00186 00187 /** 00188 * @brief This function handles USB On The Go FS global interrupt. 00189 */ 00190 void OTG_FS_IRQHandler(void) 00191 { 00192 /* USER CODE BEGIN OTG_FS_IRQn 0 */ 00193 00194 /* USER CODE END OTG_FS_IRQn 0 */ 00195 HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS); 00196 /* USER CODE BEGIN OTG_FS_IRQn 1 */ 00197 00198 /* USER CODE END OTG_FS_IRQn 1 */ 00199 } 00200 00201 /* USER CODE BEGIN 1 */ 00202 00203 /* USER CODE END 1 */ 00204 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 22:19:21 by
