gd32f3x0_it.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. #include "gd32f3x0_eval.h"
  13. /*!
  14. \brief this function handles NMI exception
  15. \param[in] none
  16. \param[out] none
  17. \retval none
  18. */
  19. void NMI_Handler(void)
  20. {
  21. }
  22. /*!
  23. \brief this function handles HardFault exception
  24. \param[in] none
  25. \param[out] none
  26. \retval none
  27. */
  28. void HardFault_Handler(void)
  29. {
  30. /* if Hard Fault exception occurs, go to infinite loop */
  31. while (1);
  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. \brief this function handles BusFault exception
  46. \param[in] none
  47. \param[out] none
  48. \retval none
  49. */
  50. void BusFault_Handler(void)
  51. {
  52. /* if Bus Fault exception occurs, go to infinite loop */
  53. while (1);
  54. }
  55. /*!
  56. \brief this function handles UsageFault exception
  57. \param[in] none
  58. \param[out] none
  59. \retval none
  60. */
  61. void UsageFault_Handler(void)
  62. {
  63. /* if Usage Fault exception occurs, go to infinite loop */
  64. while (1);
  65. }
  66. /*!
  67. \brief this function handles SVC exception
  68. \param[in] none
  69. \param[out] none
  70. \retval none
  71. */
  72. void SVC_Handler(void)
  73. {
  74. }
  75. /*!
  76. \brief this function handles DebugMon exception
  77. \param[in] none
  78. \param[out] none
  79. \retval none
  80. */
  81. void DebugMon_Handler(void)
  82. {
  83. }
  84. /*!
  85. \brief this function handles PendSV exception
  86. \param[in] none
  87. \param[out] none
  88. \retval none
  89. */
  90. void PendSV_Handler(void)
  91. {
  92. }
  93. /*!
  94. \brief this function handles SysTick exception
  95. \param[in] none
  96. \param[out] none
  97. \retval none
  98. */
  99. void SysTick_Handler(void)
  100. {
  101. delay_decrement();
  102. }