gd32f10x_it.c 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*!
  2. \file gd32f10x_it.c
  3. \brief interrupt service routines
  4. \version 2014-12-26, V1.0.0, firmware for GD32F10x
  5. \version 2017-06-20, V2.0.0, firmware for GD32F10x
  6. \version 2018-07-31, V2.1.0, firmware for GD32F10x
  7. \version 2020-09-30, V2.2.0, firmware for GD32F10x
  8. */
  9. /*
  10. Copyright (c) 2020, GigaDevice Semiconductor Inc.
  11. Redistribution and use in source and binary forms, with or without modification,
  12. are permitted provided that the following conditions are met:
  13. 1. Redistributions of source code must retain the above copyright notice, this
  14. list of conditions and the following disclaimer.
  15. 2. Redistributions in binary form must reproduce the above copyright notice,
  16. this list of conditions and the following disclaimer in the documentation
  17. and/or other materials provided with the distribution.
  18. 3. Neither the name of the copyright holder nor the names of its contributors
  19. may be used to endorse or promote products derived from this software without
  20. specific prior written permission.
  21. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  22. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  23. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  24. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  25. INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  26. NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  27. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  28. WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  30. OF SUCH DAMAGE.
  31. */
  32. #include "gd32f10x_it.h"
  33. /*!
  34. \brief this function handles NMI exception
  35. \param[in] none
  36. \param[out] none
  37. \retval none
  38. */
  39. void NMI_Handler(void)
  40. {
  41. }
  42. /*!
  43. \brief this function handles HardFault exception
  44. \param[in] none
  45. \param[out] none
  46. \retval none
  47. */
  48. void HardFault_Handler(void)
  49. {
  50. /* if Hard Fault exception occurs, go to infinite loop */
  51. while(1){
  52. }
  53. }
  54. /*!
  55. \brief this function handles MemManage exception
  56. \param[in] none
  57. \param[out] none
  58. \retval none
  59. */
  60. void MemManage_Handler(void)
  61. {
  62. /* if Memory Manage exception occurs, go to infinite loop */
  63. while(1){
  64. }
  65. }
  66. /*!
  67. \brief this function handles BusFault exception
  68. \param[in] none
  69. \param[out] none
  70. \retval none
  71. */
  72. void BusFault_Handler(void)
  73. {
  74. /* if Bus Fault exception occurs, go to infinite loop */
  75. while(1){
  76. }
  77. }
  78. /*!
  79. \brief this function handles UsageFault exception
  80. \param[in] none
  81. \param[out] none
  82. \retval none
  83. */
  84. void UsageFault_Handler(void)
  85. {
  86. /* if Usage Fault exception occurs, go to infinite loop */
  87. while(1){
  88. }
  89. }
  90. /*!
  91. \brief this function handles SVC exception
  92. \param[in] none
  93. \param[out] none
  94. \retval none
  95. */
  96. void SVC_Handler(void)
  97. {
  98. }
  99. /*!
  100. \brief this function handles DebugMon exception
  101. \param[in] none
  102. \param[out] none
  103. \retval none
  104. */
  105. void DebugMon_Handler(void)
  106. {
  107. }
  108. /*!
  109. \brief this function handles PendSV exception
  110. \param[in] none
  111. \param[out] none
  112. \retval none
  113. */
  114. void PendSV_Handler(void)
  115. {
  116. }
  117. /*!
  118. \brief this function handles SysTick exception
  119. \param[in] none
  120. \param[out] none
  121. \retval none
  122. */
  123. void SysTick_Handler(void)
  124. {
  125. }