You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stm32l1xx_it.c 5.2KB

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