stm32f1xx_it.c 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /**
  2. ******************************************************************************
  3. * @file Templates/Src/stm32f1xx.c
  4. * @author MCD Application Team
  5. * @brief Main Interrupt Service Routines.
  6. * This file provides template for all exceptions handler and
  7. * peripherals interrupt service routine.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  12. * All rights reserved.</center></h2>
  13. *
  14. * This software component is licensed by ST under BSD 3-Clause license,
  15. * the "License"; You may not use this file except in compliance with the
  16. * License. You may obtain a copy of the License at:
  17. * opensource.org/licenses/BSD-3-Clause
  18. *
  19. ******************************************************************************
  20. */
  21. /* Includes ------------------------------------------------------------------*/
  22. #include "main.h"
  23. #include "stm32f1xx_it.h"
  24. /** @addtogroup STM32F1xx_HAL_Examples
  25. * @{
  26. */
  27. /** @addtogroup Templates
  28. * @{
  29. */
  30. /* Private typedef -----------------------------------------------------------*/
  31. /* Private define ------------------------------------------------------------*/
  32. /* Private macro -------------------------------------------------------------*/
  33. /* Private variables ---------------------------------------------------------*/
  34. /* Private function prototypes -----------------------------------------------*/
  35. /* Private functions ---------------------------------------------------------*/
  36. /******************************************************************************/
  37. /* Cortex-M3 Processor Exceptions Handlers */
  38. /******************************************************************************/
  39. /**
  40. * @brief This function handles NMI exception.
  41. * @param None
  42. * @retval None
  43. */
  44. void NMI_Handler(void)
  45. {
  46. }
  47. /**
  48. * @brief This function handles Hard Fault exception.
  49. * @param None
  50. * @retval None
  51. */
  52. void HardFault_Handler(void)
  53. {
  54. /* Go to infinite loop when Hard Fault exception occurs */
  55. while (1)
  56. {
  57. }
  58. }
  59. /**
  60. * @brief This function handles Memory Manage exception.
  61. * @param None
  62. * @retval None
  63. */
  64. void MemManage_Handler(void)
  65. {
  66. /* Go to infinite loop when Memory Manage exception occurs */
  67. while (1)
  68. {
  69. }
  70. }
  71. /**
  72. * @brief This function handles Bus Fault exception.
  73. * @param None
  74. * @retval None
  75. */
  76. void BusFault_Handler(void)
  77. {
  78. /* Go to infinite loop when Bus Fault exception occurs */
  79. while (1)
  80. {
  81. }
  82. }
  83. /**
  84. * @brief This function handles Usage Fault exception.
  85. * @param None
  86. * @retval None
  87. */
  88. void UsageFault_Handler(void)
  89. {
  90. /* Go to infinite loop when Usage Fault exception occurs */
  91. while (1)
  92. {
  93. }
  94. }
  95. /**
  96. * @brief This function handles SVCall exception.
  97. * @param None
  98. * @retval None
  99. */
  100. void SVC_Handler(void)
  101. {
  102. }
  103. /**
  104. * @brief This function handles Debug Monitor exception.
  105. * @param None
  106. * @retval None
  107. */
  108. void DebugMon_Handler(void)
  109. {
  110. }
  111. /**
  112. * @brief This function handles PendSVC exception.
  113. * @param None
  114. * @retval None
  115. */
  116. void PendSV_Handler(void)
  117. {
  118. }
  119. /**
  120. * @brief This function handles SysTick Handler.
  121. * @param None
  122. * @retval None
  123. */
  124. void SysTick_Handler(void)
  125. {
  126. HAL_IncTick();
  127. }
  128. /******************************************************************************/
  129. /* STM32F1xx Peripherals Interrupt Handlers */
  130. /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
  131. /* available peripheral interrupt handler's name please refer to the startup */
  132. /* file (startup_stm32f1xx.s). */
  133. /******************************************************************************/
  134. /**
  135. * @brief This function handles PPP interrupt request.
  136. * @param None
  137. * @retval None
  138. */
  139. /*void PPP_IRQHandler(void)
  140. {
  141. }*/
  142. /**
  143. * @}
  144. */
  145. /**
  146. * @}
  147. */
  148. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/