stm32u5xx_it.c 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file stm32u5xx_it.c
  5. * @brief Interrupt Service Routines.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2023 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 "stm32u5xx_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 Memory management fault.
  64. */
  65. void MemManage_Handler(void)
  66. {
  67. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  68. /* USER CODE END MemoryManagement_IRQn 0 */
  69. while (1)
  70. {
  71. /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */
  72. /* USER CODE END W1_MemoryManagement_IRQn 0 */
  73. }
  74. }
  75. /**
  76. * @brief This function handles Prefetch fault, memory access fault.
  77. */
  78. void BusFault_Handler(void)
  79. {
  80. /* USER CODE BEGIN BusFault_IRQn 0 */
  81. /* USER CODE END BusFault_IRQn 0 */
  82. while (1)
  83. {
  84. /* USER CODE BEGIN W1_BusFault_IRQn 0 */
  85. /* USER CODE END W1_BusFault_IRQn 0 */
  86. }
  87. }
  88. /**
  89. * @brief This function handles Undefined instruction or illegal state.
  90. */
  91. void UsageFault_Handler(void)
  92. {
  93. /* USER CODE BEGIN UsageFault_IRQn 0 */
  94. /* USER CODE END UsageFault_IRQn 0 */
  95. while (1)
  96. {
  97. /* USER CODE BEGIN W1_UsageFault_IRQn 0 */
  98. /* USER CODE END W1_UsageFault_IRQn 0 */
  99. }
  100. }
  101. /**
  102. * @brief This function handles System service call via SWI instruction.
  103. */
  104. void SVC_Handler(void)
  105. {
  106. /* USER CODE BEGIN SVCall_IRQn 0 */
  107. /* USER CODE END SVCall_IRQn 0 */
  108. /* USER CODE BEGIN SVCall_IRQn 1 */
  109. /* USER CODE END SVCall_IRQn 1 */
  110. }
  111. /**
  112. * @brief This function handles Debug monitor.
  113. */
  114. void DebugMon_Handler(void)
  115. {
  116. /* USER CODE BEGIN DebugMonitor_IRQn 0 */
  117. /* USER CODE END DebugMonitor_IRQn 0 */
  118. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  119. /* USER CODE END DebugMonitor_IRQn 1 */
  120. }
  121. /******************************************************************************/
  122. /* STM32U5xx Peripheral Interrupt Handlers */
  123. /* Add here the Interrupt Handlers for the used peripherals. */
  124. /* For the available peripheral interrupt handler names, */
  125. /* please refer to the startup file (startup_stm32u5xx.s). */
  126. /******************************************************************************/
  127. /* USER CODE BEGIN 1 */
  128. /* USER CODE END 1 */