stm32f2xx_it.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. HAL_GPIO_WritePin(GPIOF,GPIO_PIN_6,GPIO_PIN_SET);
  53. }
  54. }
  55. /**
  56. * @brief This function handles Memory Manage exception.
  57. * @param None
  58. * @retval None
  59. */
  60. void MemManage_Handler(void)
  61. {
  62. /* Go to infinite loop when Memory Manage exception occurs */
  63. while (1)
  64. {
  65. }
  66. }
  67. /**
  68. * @brief This function handles Bus Fault exception.
  69. * @param None
  70. * @retval None
  71. */
  72. void BusFault_Handler(void)
  73. {
  74. /* Go to infinite loop when Bus Fault exception occurs */
  75. while (1)
  76. {
  77. }
  78. }
  79. /**
  80. * @brief This function handles Usage Fault exception.
  81. * @param None
  82. * @retval None
  83. */
  84. void UsageFault_Handler(void)
  85. {
  86. /* Go to infinite loop when Usage Fault exception occurs */
  87. while (1)
  88. {
  89. }
  90. }
  91. /**
  92. * @brief This function handles Debug Monitor exception.
  93. * @param None
  94. * @retval None
  95. */
  96. void DebugMon_Handler(void)
  97. {
  98. }
  99. /**
  100. * @brief This function handles SysTick Handler.
  101. * @param None
  102. * @retval None
  103. */
  104. void SysTick_Handler(void)
  105. {
  106. osSystickHandler();
  107. }
  108. /**
  109. * @brief This function handles Ethernet interrupt request.
  110. * @param None
  111. * @retval None
  112. */
  113. void ETH_IRQHandler(void)
  114. {
  115. uint32_t ulReturn;
  116. ulReturn = taskENTER_CRITICAL_FROM_ISR();
  117. HAL_ETH_IRQHandler(&EthHandle);
  118. taskEXIT_CRITICAL_FROM_ISR( ulReturn );
  119. }
  120. /**
  121. * @brief This function handles PPP interrupt request.
  122. * @param None
  123. * @retval None
  124. */
  125. /*void PPP_IRQHandler(void)
  126. {
  127. }*/
  128. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/