stm32f0xx_it.c 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /**
  2. ******************************************************************************
  3. * @file IO_Toggle/stm32f0xx_it.c
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date 23-March-2012
  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. * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  14. *
  15. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  16. * You may not use this file except in compliance with the License.
  17. * You may obtain a copy of the License at:
  18. *
  19. * http://www.st.com/software_license_agreement_liberty_v2
  20. *
  21. * Unless required by applicable law or agreed to in writing, software
  22. * distributed under the License is distributed on an "AS IS" BASIS,
  23. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24. * See the License for the specific language governing permissions and
  25. * limitations under the License.
  26. *
  27. ******************************************************************************
  28. */
  29. /* Includes ------------------------------------------------------------------*/
  30. #include "includes.h"
  31. /** @addtogroup STM32F0_Discovery_Peripheral_Examples
  32. * @{
  33. */
  34. /** @addtogroup IO_Toggle
  35. * @{
  36. */
  37. /* Private typedef -----------------------------------------------------------*/
  38. /* Private define ------------------------------------------------------------*/
  39. /* Private macro -------------------------------------------------------------*/
  40. /* Private variables ---------------------------------------------------------*/
  41. /* Private function prototypes -----------------------------------------------*/
  42. /* Private functions ---------------------------------------------------------*/
  43. /******************************************************************************/
  44. /* Cortex-M0 Processor Exceptions Handlers */
  45. /******************************************************************************/
  46. /**
  47. * @brief This function handles NMI exception.
  48. * @param None
  49. * @retval None
  50. */
  51. void NMI_Handler(void)
  52. {
  53. }
  54. /**
  55. * @brief This function handles Hard Fault exception.
  56. * @param None
  57. * @retval None
  58. */
  59. //#include "modemTasks.h"
  60. void HardFault_Handler(void)
  61. {
  62. /* Go to infinite loop when Hard Fault exception occurs */
  63. //SlwTrace(INF, "HFH",1);
  64. while(1){
  65. }
  66. }
  67. /**
  68. * @brief This function handles SVCall exception.
  69. * @param None
  70. * @retval None
  71. */
  72. //void SVC_Handler(void)
  73. //{
  74. //}
  75. void RTC_IRQHandler(void)
  76. {
  77. }
  78. static char status=0,lastStatus;
  79. void EXTI0_1_IRQHandler(void)
  80. {
  81. }
  82. void EXTI2_3_IRQHandler(void)
  83. {
  84. }
  85. /**
  86. * @brief This function handles PendSVC exception.
  87. * @param None
  88. * @retval None
  89. */
  90. //void PendSV_Handler(void)
  91. //{
  92. //}
  93. /**
  94. * @brief This function handles SysTick Handler.
  95. * @param None
  96. * @retval None
  97. */
  98. static __IO uint32_t TimingDelay;
  99. void DelayMS(__IO uint32_t nTime)
  100. {
  101. TimingDelay = nTime;
  102. while(TimingDelay != 0);
  103. }
  104. void SysTick_Handler(void)
  105. {
  106. if (TimingDelay != 0x00)
  107. {
  108. TimingDelay--;
  109. }
  110. }
  111. //=============================================================================
  112. //文件名称:
  113. //功能概要:USART1中断函数
  114. //参数说明:无
  115. //函数返回:无
  116. //=============================================================================
  117. void USART1_IRQHandler(void)
  118. {
  119. UART1RxTxISRHandler(); //接收中断
  120. }
  121. void USART2_IRQHandler(void)
  122. {
  123. }
  124. /******************************************************************************/
  125. /* STM32F0xx Peripherals Interrupt Handlers */
  126. /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
  127. /* available peripheral interrupt handler's name please refer to the startup */
  128. /* file (startup_stm32f0xx.s). */
  129. /******************************************************************************/
  130. /**
  131. * @brief This function handles PPP interrupt request.
  132. * @param None
  133. * @retval None
  134. */
  135. /*void PPP_IRQHandler(void)
  136. {
  137. }*/
  138. /**
  139. * @}
  140. */
  141. /**
  142. * @}
  143. */
  144. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/