You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

194 rivejä
5.4 KiB

  1. /**
  2. ******************************************************************************
  3. * @file GPIO/GPIO_EXTI/Src/stm32f4xx_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</center></h2>
  12. *
  13. * Redistribution and use in source and binary forms, with or without modification,
  14. * are permitted provided that the following conditions are met:
  15. * 1. Redistributions of source code must retain the above copyright notice,
  16. * this list of conditions and the following disclaimer.
  17. * 2. Redistributions in binary form must reproduce the above copyright notice,
  18. * this list of conditions and the following disclaimer in the documentation
  19. * and/or other materials provided with the distribution.
  20. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  21. * may be used to endorse or promote products derived from this software
  22. * without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  25. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  27. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  28. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  30. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  31. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  32. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  33. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34. *
  35. ******************************************************************************
  36. */
  37. /* Includes ------------------------------------------------------------------*/
  38. #include "main.h"
  39. #include "stm32f4xx_it.h"
  40. /** @addtogroup STM32F4xx_HAL_Examples
  41. * @{
  42. */
  43. /** @addtogroup GPIO_EXTI
  44. * @{
  45. */
  46. /* Private typedef -----------------------------------------------------------*/
  47. /* Private define ------------------------------------------------------------*/
  48. /* Private macro -------------------------------------------------------------*/
  49. /* Private variables ---------------------------------------------------------*/
  50. /* Private function prototypes -----------------------------------------------*/
  51. /* Private functions ---------------------------------------------------------*/
  52. /******************************************************************************/
  53. /* Cortex-M4 Processor Exceptions Handlers */
  54. /******************************************************************************/
  55. /**
  56. * @brief This function handles NMI exception.
  57. * @param None
  58. * @retval None
  59. */
  60. void NMI_Handler(void)
  61. {
  62. }
  63. /**
  64. * @brief This function handles Hard Fault exception.
  65. * @param None
  66. * @retval None
  67. */
  68. void HardFault_Handler(void)
  69. {
  70. /* Go to infinite loop when Hard Fault exception occurs */
  71. while (1)
  72. {
  73. }
  74. }
  75. /**
  76. * @brief This function handles Memory Manage exception.
  77. * @param None
  78. * @retval None
  79. */
  80. void MemManage_Handler(void)
  81. {
  82. /* Go to infinite loop when Memory Manage exception occurs */
  83. while (1)
  84. {
  85. }
  86. }
  87. /**
  88. * @brief This function handles Bus Fault exception.
  89. * @param None
  90. * @retval None
  91. */
  92. void BusFault_Handler(void)
  93. {
  94. /* Go to infinite loop when Bus Fault exception occurs */
  95. while (1)
  96. {
  97. }
  98. }
  99. /**
  100. * @brief This function handles Usage Fault exception.
  101. * @param None
  102. * @retval None
  103. */
  104. void UsageFault_Handler(void)
  105. {
  106. /* Go to infinite loop when Usage Fault exception occurs */
  107. while (1)
  108. {
  109. }
  110. }
  111. /**
  112. * @brief This function handles SVCall exception.
  113. * @param None
  114. * @retval None
  115. */
  116. void SVC_Handler(void)
  117. {
  118. }
  119. /**
  120. * @brief This function handles Debug Monitor exception.
  121. * @param None
  122. * @retval None
  123. */
  124. void DebugMon_Handler(void)
  125. {
  126. }
  127. /**
  128. * @brief This function handles PendSVC exception.
  129. * @param None
  130. * @retval None
  131. */
  132. void PendSV_Handler(void)
  133. {
  134. }
  135. /**
  136. * @brief This function handles SysTick Handler.
  137. * @param None
  138. * @retval None
  139. */
  140. void SysTick_Handler(void)
  141. {
  142. HAL_IncTick();
  143. }
  144. /******************************************************************************/
  145. /* STM32F4xx Peripherals Interrupt Handlers */
  146. /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
  147. /* available peripheral interrupt handler's name please refer to the startup */
  148. /* file (startup_stm32f4xx.s). */
  149. /******************************************************************************/
  150. /**
  151. * @brief This function handles External line 0 interrupt request.
  152. * @param None
  153. * @retval None
  154. */
  155. void EXTI0_IRQHandler(void)
  156. {
  157. }
  158. /**
  159. * @brief This function handles PPP interrupt request.
  160. * @param None
  161. * @retval None
  162. */
  163. /*void PPP_IRQHandler(void)
  164. {
  165. }*/
  166. /**
  167. * @}
  168. */
  169. /**
  170. * @}
  171. */
  172. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/