Prusa MINI Firmware overview
stm32f4xx_it.c File Reference

Interrupt Service Routines. More...

#include "main.h"
#include "stm32f4xx_it.h"
#include "cmsis_os.h"
#include "bsod.h"

Functions

void NMI_Handler (void)
 This function handles Non maskable interrupt. More...
 
void HardFault_Handler (void)
 This function handles Hard fault interrupt. More...
 
void MemManage_Handler (void)
 This function handles Memory management fault. More...
 
void BusFault_Handler (void)
 This function handles Pre-fetch fault, memory access fault. More...
 
void UsageFault_Handler (void)
 This function handles Undefined instruction or illegal state. More...
 
void DebugMon_Handler (void)
 This function handles Debug monitor. More...
 
void DMA1_Stream4_IRQHandler (void)
 This function handles DMA1 stream4 global interrupt. More...
 
void DMA1_Stream5_IRQHandler (void)
 This function handles DMA1 stream5 global interrupt. More...
 
void EXTI15_10_IRQHandler (void)
 This function handles EXTI line[15:10] interrupts. More...
 
void TIM8_TRG_COM_TIM14_IRQHandler (void)
 This function handles TIM8 trigger and commutation interrupts and TIM14 global interrupt. More...
 
void TIM6_DAC_IRQHandler (void)
 This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts. More...
 
void DMA2_Stream1_IRQHandler (void)
 This function handles DMA2 stream1 global interrupt. More...
 
void DMA2_Stream2_IRQHandler (void)
 This function handles DMA2 stream2 global interrupt. More...
 
void ETH_IRQHandler (void)
 This function handles Ethernet global interrupt. More...
 
void OTG_FS_IRQHandler (void)
 This function handles USB On The Go FS global interrupt. More...
 
void OTG_HS_IRQHandler (void)
 This function handles USB On The Go HS global interrupt. More...
 

Variables

ETH_HandleTypeDef heth
 
PCD_HandleTypeDef hpcd_USB_OTG_FS
 
HCD_HandleTypeDef hhcd_USB_OTG_HS
 
DMA_HandleTypeDef hdma_spi2_tx
 
TIM_HandleTypeDef htim14
 
DMA_HandleTypeDef hdma_usart1_rx
 
DMA_HandleTypeDef hdma_usart2_rx
 
DMA_HandleTypeDef hdma_usart6_rx
 
TIM_HandleTypeDef htim6
 

Detailed Description

Interrupt Service Routines.

COPYRIGHT(c) 2019 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ NMI_Handler()

void NMI_Handler ( void  )

This function handles Non maskable interrupt.

96  {
97  /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
98 
99  /* USER CODE END NonMaskableInt_IRQn 0 */
100  /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
101 
102  /* USER CODE END NonMaskableInt_IRQn 1 */
103 }

◆ HardFault_Handler()

void HardFault_Handler ( void  )

This function handles Hard fault interrupt.

108  {
109  /* USER CODE BEGIN HardFault_IRQn 0 */
110  bsod("HardFault_Handler");
111  /* USER CODE END HardFault_IRQn 0 */
112  while (1) {
113  /* USER CODE BEGIN W1_HardFault_IRQn 0 */
114  /* USER CODE END W1_HardFault_IRQn 0 */
115  }
116 }

◆ MemManage_Handler()

void MemManage_Handler ( void  )

This function handles Memory management fault.

121  {
122  /* USER CODE BEGIN MemoryManagement_IRQn 0 */
123  bsod("MemManage_Handler");
124  /* USER CODE END MemoryManagement_IRQn 0 */
125  while (1) {
126  /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */
127  /* USER CODE END W1_MemoryManagement_IRQn 0 */
128  }
129 }

◆ BusFault_Handler()

void BusFault_Handler ( void  )

This function handles Pre-fetch fault, memory access fault.

134  {
135  /* USER CODE BEGIN BusFault_IRQn 0 */
136  bsod("BusFault_Handler");
137  /* USER CODE END BusFault_IRQn 0 */
138  while (1) {
139  /* USER CODE BEGIN W1_BusFault_IRQn 0 */
140  /* USER CODE END W1_BusFault_IRQn 0 */
141  }
142 }

◆ UsageFault_Handler()

void UsageFault_Handler ( void  )

This function handles Undefined instruction or illegal state.

147  {
148  /* USER CODE BEGIN UsageFault_IRQn 0 */
149  bsod("UsageFault_Handler");
150  /* USER CODE END UsageFault_IRQn 0 */
151  while (1) {
152  /* USER CODE BEGIN W1_UsageFault_IRQn 0 */
153  /* USER CODE END W1_UsageFault_IRQn 0 */
154  }
155 }

◆ DebugMon_Handler()

void DebugMon_Handler ( void  )

This function handles Debug monitor.

160  {
161  /* USER CODE BEGIN DebugMonitor_IRQn 0 */
162 
163  /* USER CODE END DebugMonitor_IRQn 0 */
164  /* USER CODE BEGIN DebugMonitor_IRQn 1 */
165 
166  /* USER CODE END DebugMonitor_IRQn 1 */
167 }

◆ DMA1_Stream4_IRQHandler()

void DMA1_Stream4_IRQHandler ( void  )

This function handles DMA1 stream4 global interrupt.

179  {
180  /* USER CODE BEGIN DMA1_Stream4_IRQn 0 */
181 
182  /* USER CODE END DMA1_Stream4_IRQn 0 */
184  /* USER CODE BEGIN DMA1_Stream4_IRQn 1 */
185 
186  /* USER CODE END DMA1_Stream4_IRQn 1 */
187 }
Here is the call graph for this function:

◆ DMA1_Stream5_IRQHandler()

void DMA1_Stream5_IRQHandler ( void  )

This function handles DMA1 stream5 global interrupt.

192  {
193  /* USER CODE BEGIN DMA1_Stream5_IRQn 0 */
194 
195  /* USER CODE END DMA1_Stream5_IRQn 0 */
197  /* USER CODE BEGIN DMA1_Stream5_IRQn 1 */
198 
199  /* USER CODE END DMA1_Stream5_IRQn 1 */
200 }
Here is the call graph for this function:

◆ EXTI15_10_IRQHandler()

void EXTI15_10_IRQHandler ( void  )

This function handles EXTI line[15:10] interrupts.

205  {
206  /* USER CODE BEGIN EXTI15_10_IRQn 0 */
207 
208  /* USER CODE END EXTI15_10_IRQn 0 */
211  /* USER CODE BEGIN EXTI15_10_IRQn 1 */
212 
213  /* USER CODE END EXTI15_10_IRQn 1 */
214 }
Here is the call graph for this function:

◆ TIM8_TRG_COM_TIM14_IRQHandler()

void TIM8_TRG_COM_TIM14_IRQHandler ( void  )

This function handles TIM8 trigger and commutation interrupts and TIM14 global interrupt.

219  {
220  /* USER CODE BEGIN TIM8_TRG_COM_TIM14_IRQn 0 */
221 
222  /* USER CODE END TIM8_TRG_COM_TIM14_IRQn 0 */
224  /* USER CODE BEGIN TIM8_TRG_COM_TIM14_IRQn 1 */
225 
226  /* USER CODE END TIM8_TRG_COM_TIM14_IRQn 1 */
227 }
Here is the call graph for this function:

◆ TIM6_DAC_IRQHandler()

void TIM6_DAC_IRQHandler ( void  )

This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts.

232  {
233  /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
234 
235  /* USER CODE END TIM6_DAC_IRQn 0 */
237  /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
238 
239  /* USER CODE END TIM6_DAC_IRQn 1 */
240 }
Here is the call graph for this function:

◆ DMA2_Stream1_IRQHandler()

void DMA2_Stream1_IRQHandler ( void  )

This function handles DMA2 stream1 global interrupt.

245  {
246  /* USER CODE BEGIN DMA2_Stream1_IRQn 0 */
247 
248  /* USER CODE END DMA2_Stream1_IRQn 0 */
250  /* USER CODE BEGIN DMA2_Stream1_IRQn 1 */
251 
252  /* USER CODE END DMA2_Stream1_IRQn 1 */
253 }
Here is the call graph for this function:

◆ DMA2_Stream2_IRQHandler()

void DMA2_Stream2_IRQHandler ( void  )

This function handles DMA2 stream2 global interrupt.

258  {
259  /* USER CODE BEGIN DMA2_Stream2_IRQn 0 */
260 
261  /* USER CODE END DMA2_Stream2_IRQn 0 */
263  /* USER CODE BEGIN DMA2_Stream2_IRQn 1 */
264 
265  /* USER CODE END DMA2_Stream2_IRQn 1 */
266 }
Here is the call graph for this function:

◆ ETH_IRQHandler()

void ETH_IRQHandler ( void  )

This function handles Ethernet global interrupt.

271  {
272  /* USER CODE BEGIN ETH_IRQn 0 */
273 
274  /* USER CODE END ETH_IRQn 0 */
275  HAL_ETH_IRQHandler(&heth);
276  /* USER CODE BEGIN ETH_IRQn 1 */
277 
278  /* USER CODE END ETH_IRQn 1 */
279 }

◆ OTG_FS_IRQHandler()

void OTG_FS_IRQHandler ( void  )

This function handles USB On The Go FS global interrupt.

284  {
285  /* USER CODE BEGIN OTG_FS_IRQn 0 */
286 
287  /* USER CODE END OTG_FS_IRQn 0 */
288  HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS);
289  /* USER CODE BEGIN OTG_FS_IRQn 1 */
290 
291  /* USER CODE END OTG_FS_IRQn 1 */
292 }

◆ OTG_HS_IRQHandler()

void OTG_HS_IRQHandler ( void  )

This function handles USB On The Go HS global interrupt.

297  {
298  /* USER CODE BEGIN OTG_HS_IRQn 0 */
299 
300  /* USER CODE END OTG_HS_IRQn 0 */
301  HAL_HCD_IRQHandler(&hhcd_USB_OTG_HS);
302  /* USER CODE BEGIN OTG_HS_IRQn 1 */
303 
304  /* USER CODE END OTG_HS_IRQn 1 */
305 }

Variable Documentation

◆ heth

ETH_HandleTypeDef heth

◆ hpcd_USB_OTG_FS

PCD_HandleTypeDef hpcd_USB_OTG_FS

◆ hhcd_USB_OTG_HS

HCD_HandleTypeDef hhcd_USB_OTG_HS

◆ hdma_spi2_tx

DMA_HandleTypeDef hdma_spi2_tx

File Name : stm32f4xx_hal_msp.c Description : This file provides code for the MSP Initialization and de-Initialization codes.

This notice applies to any and all portions of this file that are not between comment pairs USER CODE BEGIN and USER CODE END. Other portions of this file, whether inserted by the user or by software development tools are owned by their respective copyright owners.

COPYRIGHT(c) 2019 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ htim14

◆ hdma_usart1_rx

DMA_HandleTypeDef hdma_usart1_rx

◆ hdma_usart2_rx

DMA_HandleTypeDef hdma_usart2_rx

◆ hdma_usart6_rx

DMA_HandleTypeDef hdma_usart6_rx

◆ htim6

HAL_GPIO_EXTI_IRQHandler
void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
GPIO_PIN_10
#define GPIO_PIN_10
Definition: stm32f4xx_hal_gpio.h:112
hdma_usart2_rx
DMA_HandleTypeDef hdma_usart2_rx
Definition: main.c:94
hhcd_USB_OTG_HS
HCD_HandleTypeDef hhcd_USB_OTG_HS
Definition: usbh_conf.c:67
hdma_usart1_rx
DMA_HandleTypeDef hdma_usart1_rx
Definition: main.c:93
hpcd_USB_OTG_FS
PCD_HandleTypeDef hpcd_USB_OTG_FS
Definition: usbd_conf.c:69
GPIO_PIN_14
#define GPIO_PIN_14
Definition: stm32f4xx_hal_gpio.h:116
htim6
TIM_HandleTypeDef htim6
Definition: stm32f4xx_hal_timebase_tim.c:49
HAL_DMA_IRQHandler
void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
HAL_TIM_IRQHandler
void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
hdma_usart6_rx
DMA_HandleTypeDef hdma_usart6_rx
Definition: main.c:95
htim14
TIM_HandleTypeDef htim14
Definition: main.c:88
bsod
#define bsod(fmt,...)
Definition: bsod.h:20
heth
ETH_HandleTypeDef heth
Definition: ethernetif.c:108
hdma_spi2_tx
DMA_HandleTypeDef hdma_spi2_tx
Definition: main.c:83