stm32f20x_it.c 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /**
  2. ******************************************************************************
  3. * @file Project/Template/stm32f10x_it.c
  4. * @author MCD Application Team
  5. * @version V3.1.0
  6. * @date 06/19/2009
  7. * @brief Main Interrupt Service Routines.
  8. * This file provides template for all exceptions handler and
  9. * peripherals interrupt service routine.
  10. ******************************************************************************
  11. * @copy
  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 2009 STMicroelectronics</center></h2>
  21. */
  22. /* Includes ------------------------------------------------------------------*/
  23. #include "stm32f20x_it.h"
  24. #include <rtthread.h>
  25. /** @addtogroup Template_Project
  26. * @{
  27. */
  28. /* Private typedef -----------------------------------------------------------*/
  29. /* Private define ------------------------------------------------------------*/
  30. /* Private macro -------------------------------------------------------------*/
  31. /* Private variables ---------------------------------------------------------*/
  32. /* Private function prototypes -----------------------------------------------*/
  33. /* Private functions ---------------------------------------------------------*/
  34. /******************************************************************************/
  35. /* Cortex-M3 Processor Exceptions Handlers */
  36. /******************************************************************************/
  37. /**
  38. * @brief This function handles NMI exception.
  39. * @param None
  40. * @retval None
  41. */
  42. void NMI_Handler(void)
  43. {
  44. }
  45. /**
  46. * @brief This function handles Memory Manage exception.
  47. * @param None
  48. * @retval None
  49. */
  50. void MemManage_Handler(void)
  51. {
  52. /* Go to infinite loop when Memory Manage exception occurs */
  53. while (1)
  54. {
  55. }
  56. }
  57. /**
  58. * @brief This function handles Bus Fault exception.
  59. * @param None
  60. * @retval None
  61. */
  62. void BusFault_Handler(void)
  63. {
  64. /* Go to infinite loop when Bus Fault exception occurs */
  65. while (1)
  66. {
  67. }
  68. }
  69. /**
  70. * @brief This function handles Usage Fault exception.
  71. * @param None
  72. * @retval None
  73. */
  74. void UsageFault_Handler(void)
  75. {
  76. /* Go to infinite loop when Usage Fault exception occurs */
  77. while (1)
  78. {
  79. }
  80. }
  81. /**
  82. * @brief This function handles SVCall exception.
  83. * @param None
  84. * @retval None
  85. */
  86. void SVC_Handler(void)
  87. {
  88. }
  89. /**
  90. * @brief This function handles Debug Monitor exception.
  91. * @param None
  92. * @retval None
  93. */
  94. void DebugMon_Handler(void)
  95. {
  96. }
  97. #if defined(RT_USING_DFS) && STM32_USE_SDIO
  98. /*******************************************************************************
  99. * Function Name : SDIO_IRQHandler
  100. * Description : This function handles SDIO global interrupt request.
  101. * Input : None
  102. * Output : None
  103. * Return : None
  104. *******************************************************************************/
  105. void SDIO_IRQHandler(void)
  106. {
  107. extern int SD_ProcessIRQSrc(void);
  108. /* enter interrupt */
  109. rt_interrupt_enter();
  110. /* Process All SDIO Interrupt Sources */
  111. if( SD_ProcessIRQSrc() == 2)
  112. rt_kprintf("SD Error\n");
  113. /* leave interrupt */
  114. rt_interrupt_leave();
  115. }
  116. #endif
  117. /**
  118. * @}
  119. */
  120. /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/