stm32h7xx_it.c 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file stm32h7xx_it.c
  5. * @brief Interrupt Service Routines.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2024 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. /* USER CODE END Header */
  19. /* Includes ------------------------------------------------------------------*/
  20. #include "main.h"
  21. #include "stm32h7xx_it.h"
  22. /* Private includes ----------------------------------------------------------*/
  23. /* USER CODE BEGIN Includes */
  24. /* USER CODE END Includes */
  25. /* Private typedef -----------------------------------------------------------*/
  26. /* USER CODE BEGIN TD */
  27. /* USER CODE END TD */
  28. /* Private define ------------------------------------------------------------*/
  29. /* USER CODE BEGIN PD */
  30. /* USER CODE END PD */
  31. /* Private macro -------------------------------------------------------------*/
  32. /* USER CODE BEGIN PM */
  33. /* USER CODE END PM */
  34. /* Private variables ---------------------------------------------------------*/
  35. /* USER CODE BEGIN PV */
  36. /* USER CODE END PV */
  37. /* Private function prototypes -----------------------------------------------*/
  38. /* USER CODE BEGIN PFP */
  39. /* USER CODE END PFP */
  40. /* Private user code ---------------------------------------------------------*/
  41. /* USER CODE BEGIN 0 */
  42. /* USER CODE END 0 */
  43. /* External variables --------------------------------------------------------*/
  44. /* USER CODE BEGIN EV */
  45. /* USER CODE END EV */
  46. /******************************************************************************/
  47. /* Cortex Processor Interruption and Exception Handlers */
  48. /******************************************************************************/
  49. /**
  50. * @brief This function handles Non maskable interrupt.
  51. */
  52. void NMI_Handler(void)
  53. {
  54. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  55. /* USER CODE END NonMaskableInt_IRQn 0 */
  56. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  57. while (1)
  58. {
  59. }
  60. /* USER CODE END NonMaskableInt_IRQn 1 */
  61. }
  62. /**
  63. * @brief This function handles Hard fault interrupt.
  64. */
  65. void HardFault_Handler(void)
  66. {
  67. /* USER CODE BEGIN HardFault_IRQn 0 */
  68. /* USER CODE END HardFault_IRQn 0 */
  69. while (1)
  70. {
  71. /* USER CODE BEGIN W1_HardFault_IRQn 0 */
  72. /* USER CODE END W1_HardFault_IRQn 0 */
  73. }
  74. }
  75. /**
  76. * @brief This function handles Memory management fault.
  77. */
  78. void MemManage_Handler(void)
  79. {
  80. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  81. /* USER CODE END MemoryManagement_IRQn 0 */
  82. while (1)
  83. {
  84. /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */
  85. /* USER CODE END W1_MemoryManagement_IRQn 0 */
  86. }
  87. }
  88. /**
  89. * @brief This function handles Pre-fetch fault, memory access fault.
  90. */
  91. void BusFault_Handler(void)
  92. {
  93. /* USER CODE BEGIN BusFault_IRQn 0 */
  94. /* USER CODE END BusFault_IRQn 0 */
  95. while (1)
  96. {
  97. /* USER CODE BEGIN W1_BusFault_IRQn 0 */
  98. /* USER CODE END W1_BusFault_IRQn 0 */
  99. }
  100. }
  101. /**
  102. * @brief This function handles Undefined instruction or illegal state.
  103. */
  104. void UsageFault_Handler(void)
  105. {
  106. /* USER CODE BEGIN UsageFault_IRQn 0 */
  107. /* USER CODE END UsageFault_IRQn 0 */
  108. while (1)
  109. {
  110. /* USER CODE BEGIN W1_UsageFault_IRQn 0 */
  111. /* USER CODE END W1_UsageFault_IRQn 0 */
  112. }
  113. }
  114. /**
  115. * @brief This function handles System service call via SWI instruction.
  116. */
  117. void SVC_Handler(void)
  118. {
  119. /* USER CODE BEGIN SVCall_IRQn 0 */
  120. /* USER CODE END SVCall_IRQn 0 */
  121. /* USER CODE BEGIN SVCall_IRQn 1 */
  122. /* USER CODE END SVCall_IRQn 1 */
  123. }
  124. /**
  125. * @brief This function handles Debug monitor.
  126. */
  127. void DebugMon_Handler(void)
  128. {
  129. /* USER CODE BEGIN DebugMonitor_IRQn 0 */
  130. /* USER CODE END DebugMonitor_IRQn 0 */
  131. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  132. /* USER CODE END DebugMonitor_IRQn 1 */
  133. }
  134. /**
  135. * @brief This function handles Pendable request for system service.
  136. */
  137. void PendSV_Handler(void)
  138. {
  139. /* USER CODE BEGIN PendSV_IRQn 0 */
  140. /* USER CODE END PendSV_IRQn 0 */
  141. /* USER CODE BEGIN PendSV_IRQn 1 */
  142. /* USER CODE END PendSV_IRQn 1 */
  143. }
  144. /**
  145. * @brief This function handles System tick timer.
  146. */
  147. void SysTick_Handler(void)
  148. {
  149. /* USER CODE BEGIN SysTick_IRQn 0 */
  150. /* USER CODE END SysTick_IRQn 0 */
  151. HAL_IncTick();
  152. /* USER CODE BEGIN SysTick_IRQn 1 */
  153. /* USER CODE END SysTick_IRQn 1 */
  154. }
  155. /******************************************************************************/
  156. /* STM32H7xx Peripheral Interrupt Handlers */
  157. /* Add here the Interrupt Handlers for the used peripherals. */
  158. /* For the available peripheral interrupt handler names, */
  159. /* please refer to the startup file (startup_stm32h7xx.s). */
  160. /******************************************************************************/
  161. /* USER CODE BEGIN 1 */
  162. /* USER CODE END 1 */