comparison Small_CPU/Src/stm32f4xx_it_v3.c @ 38:5f11787b4f42

include in ostc4 repository
author heinrichsweikamp
date Sat, 28 Apr 2018 11:52:34 +0200
parents
children 2d99d9290a22
comparison
equal deleted inserted replaced
37:ccc45c0e1ea2 38:5f11787b4f42
1 /**
2 ******************************************************************************
3 * @file GPIO/GPIO_IOToggle/Src/stm32f4xx_it.c
4 * @author MCD Application Team
5 * @version V1.1.0
6 * @date 26-June-2014
7 * @brief Main Interrupt Service Routines.
8 * This file provides template for all exceptions handler and
9 * peripherals interrupt service routine.
10 ******************************************************************************
11 * @attention
12 *
13 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
14 *
15 * Redistribution and use in source and binary forms, with or without modification,
16 * are permitted provided that the following conditions are met:
17 * 1. Redistributions of source code must retain the above copyright notice,
18 * this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright notice,
20 * this list of conditions and the following disclaimer in the documentation
21 * and/or other materials provided with the distribution.
22 * 3. Neither the name of STMicroelectronics nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
34 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 ******************************************************************************
38 */
39
40 /* Includes ------------------------------------------------------------------*/
41 #include "baseCPU2.h"
42 #include "stm32f4xx_it_v3.h"
43
44 /** @addtogroup STM32F4xx_HAL_Examples
45 * @{
46 */
47
48 /** @addtogroup GPIO_IOToggle
49 * @{
50 */
51
52 /* Private typedef -----------------------------------------------------------*/
53 /* Private define ------------------------------------------------------------*/
54 /* Private macro -------------------------------------------------------------*/
55 /* Private variables ---------------------------------------------------------*/
56 extern I2C_HandleTypeDef I2cHandle;
57 extern SPI_HandleTypeDef hspi1;
58 extern RTC_HandleTypeDef RTCHandle;
59 extern ADC_HandleTypeDef AdcHandle;
60
61 /* Private function prototypes -----------------------------------------------*/
62 /* Private functions ---------------------------------------------------------*/
63
64 /******************************************************************************/
65 /* Cortex-M4 Processor Exceptions Handlers */
66 /******************************************************************************/
67
68 /**
69 * @brief This function handles NMI exception.
70 * @param None
71 * @retval None
72 */
73 void NMI_Handler(void)
74 {
75 }
76
77 /**
78 * @brief This function handles Hard Fault exception.
79 * @param None
80 * @retval None
81 */
82 void HardFault_Handler(void)
83 {
84 /* Go to infinite loop when Hard Fault exception occurs */
85 while (1)
86 {
87 }
88 }
89
90 /**
91 * @brief This function handles Memory Manage exception.
92 * @param None
93 * @retval None
94 */
95 void MemManage_Handler(void)
96 {
97 /* Go to infinite loop when Memory Manage exception occurs */
98 while (1)
99 {
100 }
101 }
102
103 /**
104 * @brief This function handles Bus Fault exception.
105 * @param None
106 * @retval None
107 */
108 void BusFault_Handler(void)
109 {
110 /* Go to infinite loop when Bus Fault exception occurs */
111 while (1)
112 {
113 }
114 }
115
116 /**
117 * @brief This function handles Usage Fault exception.
118 * @param None
119 * @retval None
120 */
121 void UsageFault_Handler(void)
122 {
123 /* Go to infinite loop when Usage Fault exception occurs */
124 while (1)
125 {
126 }
127 }
128
129 /**
130 * @brief This function handles SVCall exception.
131 * @param None
132 * @retval None
133 */
134 void SVC_Handler(void)
135 {
136 }
137
138 /**
139 * @brief This function handles Debug Monitor exception.
140 * @param None
141 * @retval None
142 */
143 void DebugMon_Handler(void)
144 {
145 }
146
147 /**
148 * @brief This function handles PendSVC exception.
149 * @param None
150 * @retval None
151 */
152 void PendSV_Handler(void)
153 {
154 }
155
156 /**
157 * @brief This function handles SysTick Handler.
158 * @param None
159 * @retval None
160 */
161 void SysTick_Handler(void)
162 {
163 HAL_IncTick();
164 }
165
166
167 /******************************************************************************/
168 /* STM32F4xx Peripherals Interrupt Handlers */
169 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
170 /* available peripheral interrupt handler's name please refer to the startup */
171 /* file (startup_stm32f4xx.s). */
172 /******************************************************************************/
173 /**
174 * @brief This function handles I2C event interrupt request.
175 * @param None
176 * @retval None
177 * @Note This function is redefined in "main.h" and related to I2C data transmission
178 */
179 void I2Cx_EV_IRQHandler(void)
180 {
181 HAL_I2C_EV_IRQHandler(& I2cHandle);
182 }
183
184 /**
185 * @brief This function handles I2C error interrupt request.
186 * @param None
187 * @retval None
188 * @Note This function is redefined in "main.h" and related to I2C error
189 */
190 void I2Cx_ER_IRQHandler(void)
191 {
192 HAL_I2C_ER_IRQHandler(& I2cHandle);
193 }
194
195
196 /**
197 * @brief This function handles SPI interrupt request.
198 * @param None
199 * @retval None
200 */
201
202 /*
203 void SPI1_IRQHandler(void)
204 {
205 HAL_SPI_IRQHandler(&hspi1);
206 }
207 */
208
209 /**
210 * @brief This function handles DMA Tx interrupt request.
211 * @param None
212 * @retval None
213 */
214 void DMA2_Stream3_IRQHandler(void)
215 {
216 HAL_DMA_IRQHandler(hspi1.hdmatx);
217 }
218
219 /**
220 * @brief This function handles DMA Rx interrupt request.
221 * @param None
222 * @retval None
223 */
224 void DMA2_Stream0_IRQHandler(void)
225 {
226 HAL_DMA_IRQHandler(hspi1.hdmarx);
227 }
228
229 /**
230 * @brief This function handles PPP interrupt request.
231 * @param None
232 * @retval None
233 */
234
235
236 /******************************************************************************/
237 /* STM32F4xx Peripherals Interrupt Handlers */
238 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
239 /* available peripheral interrupt handler's name please refer to the startup */
240 /* file (startup_stm32f4xx.s). */
241 /******************************************************************************/
242
243
244 /**
245 * @brief This function handles RTC Auto wake-up interrupt request.
246 * @param None
247 * @retval None
248 */
249 void RTC_WKUP_IRQHandler(void)
250 {
251 HAL_RTCEx_WakeUpTimerIRQHandler(&RTCHandle);
252 }
253
254 /**
255 * @brief This function handles External line 0 interrupt request.
256 * @param None
257 * @retval None
258 */
259 void EXTI15_10_IRQHandler(void)
260 {
261 HAL_GPIO_EXTI_IRQHandler(0xFF);
262 }
263
264 /* button */
265 void EXTI0_IRQHandler(void)
266 {
267 HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_0);
268 }
269
270 /* wireless 1 + 2 */
271 void EXTI1_IRQHandler(void)
272 {
273 HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_1);
274 }
275
276 void EXTI2_IRQHandler(void)
277 {
278 HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_2);
279 }
280
281 /* test button */
282 void EXTI3_IRQHandler(void)
283 {
284 HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_3);
285 }
286
287 /**
288 * @brief This function handles ADC interrupt request.
289 * @param None
290 * @retval None
291 */
292 void ADC_IRQHandler(void)
293 {
294 HAL_ADC_IRQHandler(&AdcHandle);
295 }
296
297 /**
298 * @brief This function handles PPP interrupt request.
299 * @param None
300 * @retval None
301 */
302 /*void PPP_IRQHandler(void)
303 {
304 }*/
305
306 /**
307 * @}
308 */
309
310 /**
311 * @}
312 */
313
314 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/