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 
75 /* USER CODE BEGIN EV */
76 
77 /* USER CODE END EV */
78 
79 /******************************************************************************/
80 /*           Cortex-M0 Processor Interruption and Exception Handlers          */
81 /******************************************************************************/
82 /**
83   * @brief This function handles Non maskable interrupt.
84   */
NMI_Handler(void)85 void NMI_Handler(void)
86 {
87   /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
88 
89   /* USER CODE END NonMaskableInt_IRQn 0 */
90   /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
91 
92   /* USER CODE END NonMaskableInt_IRQn 1 */
93 }
94 
95 /**
96   * @brief This function handles Hard fault interrupt.
97   */
HardFault_Handler(void)98 void HardFault_Handler(void)
99 {
100   /* USER CODE BEGIN HardFault_IRQn 0 */
101 
102   /* USER CODE END HardFault_IRQn 0 */
103   while (1)
104   {
105     /* USER CODE BEGIN W1_HardFault_IRQn 0 */
106     /* USER CODE END W1_HardFault_IRQn 0 */
107   }
108 }
109 
110 /**
111   * @brief This function handles System service call via SWI instruction.
112   */
SVC_Handler(void)113 void SVC_Handler(void)
114 {
115   /* USER CODE BEGIN SVC_IRQn 0 */
116 
117   /* USER CODE END SVC_IRQn 0 */
118   /* USER CODE BEGIN SVC_IRQn 1 */
119 
120   /* USER CODE END SVC_IRQn 1 */
121 }
122 
123 /**
124   * @brief This function handles Pendable request for system service.
125   */
PendSV_Handler(void)126 void PendSV_Handler(void)
127 {
128   /* USER CODE BEGIN PendSV_IRQn 0 */
129 
130   /* USER CODE END PendSV_IRQn 0 */
131   /* USER CODE BEGIN PendSV_IRQn 1 */
132 
133   /* USER CODE END PendSV_IRQn 1 */
134 }
135 
136 /**
137   * @brief This function handles System tick timer.
138   */
SysTick_Handler(void)139 void SysTick_Handler(void)
140 {
141   /* USER CODE BEGIN SysTick_IRQn 0 */
142 
143   /* USER CODE END SysTick_IRQn 0 */
144   HAL_IncTick();
145   /* USER CODE BEGIN SysTick_IRQn 1 */
146 
147   /* USER CODE END SysTick_IRQn 1 */
148 }
149 
150 /******************************************************************************/
151 /* STM32F0xx Peripheral Interrupt Handlers                                    */
152 /* Add here the Interrupt Handlers for the used peripherals.                  */
153 /* For the available peripheral interrupt handler names,                      */
154 /* please refer to the startup file (startup_stm32f0xx.s).                    */
155 /******************************************************************************/
156 
157 /* USER CODE BEGIN 1 */
158 
159 /* USER CODE END 1 */
160 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
161