1 /* USER CODE BEGIN Header */
2 /**
3 ******************************************************************************
4 * @file stm32f0xx_it.c
5 * @brief Interrupt Service Routines.
6 ******************************************************************************
7 *
8 * COPYRIGHT(c) 2018 STMicroelectronics
9 *
10 * Redistribution and use in source and binary forms, with or without modification,
11 * are permitted provided that the following conditions are met:
12 * 1. Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright notice,
15 * this list of conditions and the following disclaimer in the documentation
16 * and/or other materials provided with the distribution.
17 * 3. Neither the name of STMicroelectronics nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 ******************************************************************************
33 */
34 /* USER CODE END Header */
35
36 /* Includes ------------------------------------------------------------------*/
37 #include "main.h"
38 #include "stm32f0xx_it.h"
39 /* Private includes ----------------------------------------------------------*/
40 /* USER CODE BEGIN Includes */
41 /* USER CODE END Includes */
42
43 /* Private typedef -----------------------------------------------------------*/
44 /* USER CODE BEGIN TD */
45
46 /* USER CODE END TD */
47
48 /* Private define ------------------------------------------------------------*/
49 /* USER CODE BEGIN PD */
50
51 /* USER CODE END PD */
52
53 /* Private macro -------------------------------------------------------------*/
54 /* USER CODE BEGIN PM */
55
56 /* USER CODE END PM */
57
58 /* Private variables ---------------------------------------------------------*/
59 /* USER CODE BEGIN PV */
60
61 /* USER CODE END PV */
62
63 /* Private function prototypes -----------------------------------------------*/
64 /* USER CODE BEGIN PFP */
65
66 /* USER CODE END PFP */
67
68 /* Private user code ---------------------------------------------------------*/
69 /* USER CODE BEGIN 0 */
70
71 /* USER CODE END 0 */
72
73 /* External variables --------------------------------------------------------*/
74 /* USER CODE BEGIN EV */
75
76 /* USER CODE END EV */
77
78 /******************************************************************************/
79 /* Cortex-M0 Processor Interruption and Exception Handlers */
80 /******************************************************************************/
81 /**
82 * @brief This function handles Non maskable interrupt.
83 */
NMI_Handler(void)84 void NMI_Handler(void)
85 {
86 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
87
88 /* USER CODE END NonMaskableInt_IRQn 0 */
89 /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
90
91 /* USER CODE END NonMaskableInt_IRQn 1 */
92 }
93
94 /**
95 * @brief This function handles Hard fault interrupt.
96 */
HardFault_Handler(void)97 void HardFault_Handler(void)
98 {
99 /* USER CODE BEGIN HardFault_IRQn 0 */
100
101 /* USER CODE END HardFault_IRQn 0 */
102 while (1)
103 {
104 /* USER CODE BEGIN W1_HardFault_IRQn 0 */
105 /* USER CODE END W1_HardFault_IRQn 0 */
106 }
107 }
108
109 /**
110 * @brief This function handles System service call via SWI instruction.
111 */
SVC_Handler(void)112 void SVC_Handler(void)
113 {
114 /* USER CODE BEGIN SVC_IRQn 0 */
115
116 /* USER CODE END SVC_IRQn 0 */
117 /* USER CODE BEGIN SVC_IRQn 1 */
118
119 /* USER CODE END SVC_IRQn 1 */
120 }
121
122 /**
123 * @brief This function handles Pendable request for system service.
124 */
PendSV_Handler(void)125 void PendSV_Handler(void)
126 {
127 /* USER CODE BEGIN PendSV_IRQn 0 */
128
129 /* USER CODE END PendSV_IRQn 0 */
130 /* USER CODE BEGIN PendSV_IRQn 1 */
131
132 /* USER CODE END PendSV_IRQn 1 */
133 }
134
135 /**
136 * @brief This function handles System tick timer.
137 */
SysTick_Handler(void)138 void SysTick_Handler(void)
139 {
140 /* USER CODE BEGIN SysTick_IRQn 0 */
141
142 /* USER CODE END SysTick_IRQn 0 */
143 HAL_IncTick();
144 /* USER CODE BEGIN SysTick_IRQn 1 */
145
146 /* USER CODE END SysTick_IRQn 1 */
147 }
148
149 /******************************************************************************/
150 /* STM32F0xx Peripheral Interrupt Handlers */
151 /* Add here the Interrupt Handlers for the used peripherals. */
152 /* For the available peripheral interrupt handler names, */
153 /* please refer to the startup file (startup_stm32f0xx.s). */
154 /******************************************************************************/
155
156 /* USER CODE BEGIN 1 */
157
158 /* USER CODE END 1 */
159 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
160