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.

172 lines
4.1 KiB

3 years ago
  1. /**
  2. ******************************************************************************
  3. * @file Templates/Src/stm32f4xx_it.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) 2017 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 "stm32f4xx_it.h"
  23. #include "stm32f4xx_hal.h"
  24. #include "./SYSTEM/sys/sys.h"
  25. /** @addtogroup STM32F4xx_HAL_Examples
  26. * @{
  27. */
  28. /** @addtogroup Templates
  29. * @{
  30. */
  31. /* Private typedef -----------------------------------------------------------*/
  32. /* Private define ------------------------------------------------------------*/
  33. /* Private macro -------------------------------------------------------------*/
  34. /* Private variables ---------------------------------------------------------*/
  35. /* Private function prototypes -----------------------------------------------*/
  36. /* Private functions ---------------------------------------------------------*/
  37. /******************************************************************************/
  38. /* Cortex-M4 Processor Exceptions Handlers */
  39. /******************************************************************************/
  40. /**
  41. * @brief This function handles NMI exception.
  42. * @param None
  43. * @retval None
  44. */
  45. void NMI_Handler(void)
  46. {
  47. }
  48. /**
  49. * @brief This function handles Hard Fault exception.
  50. * @param None
  51. * @retval None
  52. */
  53. void HardFault_Handler(void)
  54. {
  55. /* Go to infinite loop when Hard Fault exception occurs */
  56. while (1)
  57. {
  58. }
  59. }
  60. /**
  61. * @brief This function handles Memory Manage exception.
  62. * @param None
  63. * @retval None
  64. */
  65. void MemManage_Handler(void)
  66. {
  67. /* Go to infinite loop when Memory Manage exception occurs */
  68. while (1)
  69. {
  70. }
  71. }
  72. /**
  73. * @brief This function handles Bus Fault exception.
  74. * @param None
  75. * @retval None
  76. */
  77. void BusFault_Handler(void)
  78. {
  79. /* Go to infinite loop when Bus Fault exception occurs */
  80. while (1)
  81. {
  82. }
  83. }
  84. /**
  85. * @brief This function handles Usage Fault exception.
  86. * @param None
  87. * @retval None
  88. */
  89. void UsageFault_Handler(void)
  90. {
  91. /* Go to infinite loop when Usage Fault exception occurs */
  92. while (1)
  93. {
  94. }
  95. }
  96. #if !SYS_SUPPORT_OS /* ʹ��OS */
  97. /**
  98. * @brief This function handles SVCall exception.
  99. * @param None
  100. * @retval None
  101. */
  102. void SVC_Handler(void)
  103. {
  104. }
  105. #endif
  106. /**
  107. * @brief This function handles Debug Monitor exception.
  108. * @param None
  109. * @retval None
  110. */
  111. void DebugMon_Handler(void)
  112. {
  113. }
  114. #if !SYS_SUPPORT_OS /* ʹ��OS */
  115. /**
  116. * @brief This function handles PendSVC exception.
  117. * @param None
  118. * @retval None
  119. */
  120. void PendSV_Handler(void)
  121. {
  122. }
  123. /**
  124. * @brief This function handles SysTick Handler.
  125. * @param None
  126. * @retval None
  127. */
  128. void SysTick_Handler(void)
  129. {
  130. HAL_IncTick();
  131. }
  132. #endif
  133. /******************************************************************************/
  134. /* STM32F4xx Peripherals Interrupt Handlers */
  135. /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
  136. /* available peripheral interrupt handler's name please refer to the startup */
  137. /* file (startup_stm32f4xx.s). */
  138. /******************************************************************************/
  139. /**
  140. * @brief This function handles PPP interrupt request.
  141. * @param None
  142. * @retval None
  143. */
  144. /*void PPP_IRQHandler(void)
  145. {
  146. }*/
  147. /**
  148. * @}
  149. */
  150. /**
  151. * @}
  152. */
  153. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/