老版本GCU
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.
 
 
 
 
 
 

167 lines
4.2 KiB

  1. /**
  2. ******************************************************************************
  3. * @file Project/STM32F10x_StdPeriph_Template/stm32f10x_it.c
  4. * @author MCD Application Team
  5. * @version V3.5.0
  6. * @date 08-April-2011
  7. * @brief Main Interrupt Service Routines.
  8. * This file provides template for all exceptions handler and
  9. * peripherals interrupt service routine.
  10. ******************************************************************************
  11. * @attention
  12. *
  13. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  14. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  15. * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  16. * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  17. * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  18. * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  19. *
  20. * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
  21. ******************************************************************************
  22. */
  23. /* Includes ------------------------------------------------------------------*/
  24. #include "stm32f10x_it.h"
  25. #include "stm32f10x_rtc.h"
  26. #include "stm32f10x_exti.h"
  27. #include "stm32f10x_pwr.h"
  28. #include "share.h"
  29. /** @addtogroup STM32F10x_StdPeriph_Template
  30. * @{
  31. */
  32. /* Private typedef -----------------------------------------------------------*/
  33. /* Private define ------------------------------------------------------------*/
  34. /* Private macro -------------------------------------------------------------*/
  35. /* Private variables ---------------------------------------------------------*/
  36. /* Private function prototypes -----------------------------------------------*/
  37. /* Private functions ---------------------------------------------------------*/
  38. /******************************************************************************/
  39. /* Cortex-M3 Processor Exceptions Handlers */
  40. /******************************************************************************/
  41. /**
  42. * @brief This function handles NMI exception.
  43. * @param None
  44. * @retval None
  45. */
  46. void NMI_Handler(void)
  47. {
  48. }
  49. /**
  50. * @brief This function handles Hard Fault exception.
  51. * @param None
  52. * @retval None
  53. */
  54. void HardFault_Handler(void)
  55. {
  56. /* Go to infinite loop when Hard Fault exception occurs */
  57. while (1)
  58. {
  59. }
  60. }
  61. /**
  62. * @brief This function handles Memory Manage exception.
  63. * @param None
  64. * @retval None
  65. */
  66. void MemManage_Handler(void)
  67. {
  68. /* Go to infinite loop when Memory Manage exception occurs */
  69. while (1)
  70. {
  71. }
  72. }
  73. /**
  74. * @brief This function handles Bus Fault exception.
  75. * @param None
  76. * @retval None
  77. */
  78. void BusFault_Handler(void)
  79. {
  80. /* Go to infinite loop when Bus Fault exception occurs */
  81. while (1)
  82. {
  83. }
  84. }
  85. /**
  86. * @brief This function handles Usage Fault exception.
  87. * @param None
  88. * @retval None
  89. */
  90. void UsageFault_Handler(void)
  91. {
  92. /* Go to infinite loop when Usage Fault exception occurs */
  93. while (1)
  94. {
  95. }
  96. }
  97. /**
  98. * @brief This function handles SVCall exception.
  99. * @param None
  100. * @retval None
  101. */
  102. void SVC_Handler(void)
  103. {
  104. }
  105. /**
  106. * @brief This function handles Debug Monitor exception.
  107. * @param None
  108. * @retval None
  109. */
  110. void DebugMon_Handler(void)
  111. {
  112. }
  113. /**
  114. * @brief This function handles PendSVC exception.
  115. * @param None
  116. * @retval None
  117. */
  118. void PendSV_Handler(void)
  119. {
  120. }
  121. /**
  122. * @brief This function handles SysTick Handler.
  123. * @param None
  124. * @retval None
  125. */
  126. void SysTick_Handler(void)
  127. {
  128. g_SysTick++;
  129. }
  130. /******************************************************************************/
  131. /* STM32F10x Peripherals Interrupt Handlers */
  132. /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
  133. /* available peripheral interrupt handler's name please refer to the startup */
  134. /* file (startup_stm32f10x_xx.s). */
  135. /******************************************************************************/
  136. void TIM2_IRQHandler(void)
  137. {
  138. }
  139. /**
  140. * @brief This function handles EXTI0_IRQHandler interrupt request.
  141. * @param None
  142. * @retval : None
  143. */
  144. void EXTI0_IRQHandler(void)
  145. {
  146. }