stm32f2xx_it.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /**
  2. ******************************************************************************
  3. * @file LwIP/LwIP_HTTP_Server_Socket_RTOS/Src/stm32f2xx_it.c
  4. * @author MCD Application Team
  5. * @brief Main Interrupt Service Routines.
  6. * This file provides template for all exceptions handler and
  7. * peripherals interrupt service routine.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  12. * All rights reserved.</center></h2>
  13. *
  14. * This software component is licensed by ST under BSD 3-Clause license,
  15. * the "License"; You may not use this file except in compliance with the
  16. * License. You may obtain a copy of the License at:
  17. * opensource.org/licenses/BSD-3-Clause
  18. *
  19. ******************************************************************************
  20. */
  21. /* Includes ------------------------------------------------------------------*/
  22. #include "main.h"
  23. #include "stm32f2xx_it.h"
  24. /* Private typedef -----------------------------------------------------------*/
  25. /* Private define ------------------------------------------------------------*/
  26. /* Private macro -------------------------------------------------------------*/
  27. /* Private variables ---------------------------------------------------------*/
  28. extern ETH_HandleTypeDef EthHandle;
  29. /* Private function prototypes -----------------------------------------------*/
  30. /* Private functions ---------------------------------------------------------*/
  31. /******************************************************************************/
  32. /* Cortex-M3 Processor Exceptions Handlers */
  33. /******************************************************************************/
  34. /**
  35. * @brief This function handles NMI exception.
  36. * @param None
  37. * @retval None
  38. */
  39. void NMI_Handler(void)
  40. {
  41. }
  42. /**
  43. * @brief This function handles Hard Fault exception.
  44. * @param None
  45. * @retval None
  46. */
  47. void HardFault_Handler(void)
  48. {
  49. /* Go to infinite loop when Hard Fault exception occurs */
  50. while (1)
  51. {
  52. }
  53. }
  54. /**
  55. * @brief This function handles Memory Manage exception.
  56. * @param None
  57. * @retval None
  58. */
  59. void MemManage_Handler(void)
  60. {
  61. /* Go to infinite loop when Memory Manage exception occurs */
  62. while (1)
  63. {
  64. }
  65. }
  66. /**
  67. * @brief This function handles Bus Fault exception.
  68. * @param None
  69. * @retval None
  70. */
  71. void BusFault_Handler(void)
  72. {
  73. /* Go to infinite loop when Bus Fault exception occurs */
  74. while (1)
  75. {
  76. }
  77. }
  78. /**
  79. * @brief This function handles Usage Fault exception.
  80. * @param None
  81. * @retval None
  82. */
  83. void UsageFault_Handler(void)
  84. {
  85. /* Go to infinite loop when Usage Fault exception occurs */
  86. while (1)
  87. {
  88. }
  89. }
  90. /**
  91. * @brief This function handles Debug Monitor exception.
  92. * @param None
  93. * @retval None
  94. */
  95. void DebugMon_Handler(void)
  96. {
  97. }
  98. /**
  99. * @brief This function handles SysTick Handler.
  100. * @param None
  101. * @retval None
  102. */
  103. void SysTick_Handler(void)
  104. {
  105. osSystickHandler();
  106. }
  107. /**
  108. * @brief This function handles Ethernet interrupt request.
  109. * @param None
  110. * @retval None
  111. */
  112. void ETH_IRQHandler(void)
  113. {
  114. uint32_t ulReturn;
  115. ulReturn = taskENTER_CRITICAL_FROM_ISR();
  116. HAL_ETH_IRQHandler(&EthHandle);
  117. taskEXIT_CRITICAL_FROM_ISR( ulReturn );
  118. }
  119. /**
  120. * @brief This function handles PPP interrupt request.
  121. * @param None
  122. * @retval None
  123. */
  124. /*void PPP_IRQHandler(void)
  125. {
  126. }*/
  127. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/