gd32f3x0_it.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*!
  2. \file gd32f3x0_it.c
  3. \brief interrupt service routines
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. #include "gd32f3x0_it.h"
  10. #include "main.h"
  11. #include "systick.h"
  12. /*!
  13. \brief this function handles NMI exception
  14. \param[in] none
  15. \param[out] none
  16. \retval none
  17. */
  18. void NMI_Handler(void)
  19. {
  20. }
  21. /*!
  22. \brief this function handles HardFault exception
  23. \param[in] none
  24. \param[out] none
  25. \retval none
  26. */
  27. void HardFault_Handler(void)
  28. {
  29. /* if Hard Fault exception occurs, go to infinite loop */
  30. while(1){
  31. }
  32. }
  33. /*!
  34. \brief this function handles MemManage exception
  35. \param[in] none
  36. \param[out] none
  37. \retval none
  38. */
  39. void MemManage_Handler(void)
  40. {
  41. /* if Memory Manage exception occurs, go to infinite loop */
  42. while(1){
  43. }
  44. }
  45. /*!
  46. \brief this function handles BusFault exception
  47. \param[in] none
  48. \param[out] none
  49. \retval none
  50. */
  51. void BusFault_Handler(void)
  52. {
  53. /* if Bus Fault exception occurs, go to infinite loop */
  54. while(1){
  55. }
  56. }
  57. /*!
  58. \brief this function handles UsageFault exception
  59. \param[in] none
  60. \param[out] none
  61. \retval none
  62. */
  63. void UsageFault_Handler(void)
  64. {
  65. /* if Usage Fault exception occurs, go to infinite loop */
  66. while(1){
  67. }
  68. }
  69. /*!
  70. \brief this function handles SVC exception
  71. \param[in] none
  72. \param[out] none
  73. \retval none
  74. */
  75. void SVC_Handler(void)
  76. {
  77. }
  78. /*!
  79. \brief this function handles DebugMon exception
  80. \param[in] none
  81. \param[out] none
  82. \retval none
  83. */
  84. void DebugMon_Handler(void)
  85. {
  86. }
  87. /*!
  88. \brief this function handles PendSV exception
  89. \param[in] none
  90. \param[out] none
  91. \retval none
  92. */
  93. void PendSV_Handler(void)
  94. {
  95. }
  96. /*!
  97. \brief this function handles SysTick exception
  98. \param[in] none
  99. \param[out] none
  100. \retval none
  101. */
  102. void SysTick_Handler(void)
  103. {
  104. led_spark();
  105. delay_decrement();
  106. }