/Projects/STM32746G-Discovery/Applications/USB_Device/DualCore_Standalone/Src/stm32f7xx_it.c

https://github.com/STMicroelectronics/STM32CubeF7 · C · 207 lines · 70 code · 20 blank · 117 comment · 4 complexity · 4e9bffbd024947b37535245ef918f7b2 MD5 · raw file

  1. /**
  2. ******************************************************************************
  3. * @file USB_Device/DualCore_Standalone/Src/stm32f7xx_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) 2016 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 "stm32f7xx_it.h"
  23. /* Private typedef -----------------------------------------------------------*/
  24. /* Private define ------------------------------------------------------------*/
  25. /* Private macro -------------------------------------------------------------*/
  26. /* Private variables ---------------------------------------------------------*/
  27. extern PCD_HandleTypeDef hpcd_FS;
  28. extern PCD_HandleTypeDef hpcd_HS;
  29. extern PCD_HandleTypeDef hpcd;
  30. extern USBD_HandleTypeDef USBD_Device_FS;
  31. /* SD handler declared in "stm32746g_discovery_sd.c" file */
  32. extern SD_HandleTypeDef uSdHandle;
  33. /* Private function prototypes -----------------------------------------------*/
  34. /* Private functions ---------------------------------------------------------*/
  35. /******************************************************************************/
  36. /* Cortex-M7 Processor Exceptions Handlers */
  37. /******************************************************************************/
  38. /**
  39. * @brief This function handles NMI exception.
  40. * @param None
  41. * @retval None
  42. */
  43. void NMI_Handler(void)
  44. {
  45. }
  46. /**
  47. * @brief This function handles Hard Fault exception.
  48. * @param None
  49. * @retval None
  50. */
  51. void HardFault_Handler(void)
  52. {
  53. /* Go to infinite loop when Hard Fault exception occurs */
  54. while (1)
  55. {
  56. }
  57. }
  58. /**
  59. * @brief This function handles Memory Manage exception.
  60. * @param None
  61. * @retval None
  62. */
  63. void MemManage_Handler(void)
  64. {
  65. /* Go to infinite loop when Memory Manage exception occurs */
  66. while (1)
  67. {
  68. }
  69. }
  70. /**
  71. * @brief This function handles Bus Fault exception.
  72. * @param None
  73. * @retval None
  74. */
  75. void BusFault_Handler(void)
  76. {
  77. /* Go to infinite loop when Bus Fault exception occurs */
  78. while (1)
  79. {
  80. }
  81. }
  82. /**
  83. * @brief This function handles Usage Fault exception.
  84. * @param None
  85. * @retval None
  86. */
  87. void UsageFault_Handler(void)
  88. {
  89. /* Go to infinite loop when Usage Fault exception occurs */
  90. while (1)
  91. {
  92. }
  93. }
  94. /**
  95. * @brief This function handles SVCall exception.
  96. * @param None
  97. * @retval None
  98. */
  99. void SVC_Handler(void)
  100. {
  101. }
  102. /**
  103. * @brief This function handles Debug Monitor exception.
  104. * @param None
  105. * @retval None
  106. */
  107. void DebugMon_Handler(void)
  108. {
  109. }
  110. /**
  111. * @brief This function handles PendSVC exception.
  112. * @param None
  113. * @retval None
  114. */
  115. void PendSV_Handler(void)
  116. {
  117. }
  118. /**
  119. * @brief This function handles SysTick Handler.
  120. * @param None
  121. * @retval None
  122. */
  123. void SysTick_Handler(void)
  124. {
  125. HAL_IncTick();
  126. }
  127. /******************************************************************************/
  128. /* STM32F7xx Peripherals Interrupt Handlers */
  129. /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
  130. /* available peripheral interrupt handler's name please refer to the startup */
  131. /* file (startup_stm32f7xx.s). */
  132. /******************************************************************************/
  133. /**
  134. * @brief This function handles USB-On-The-Go FS global interrupt request.
  135. * @param None
  136. * @retval None
  137. */
  138. void OTG_FS_IRQHandler(void)
  139. {
  140. HAL_PCD_IRQHandler(&hpcd_FS);
  141. }
  142. /**
  143. * @brief This function handles USB-On-The-Go HS global interrupt request.
  144. * @param None
  145. * @retval None
  146. */
  147. void OTG_HS_IRQHandler(void)
  148. {
  149. HAL_PCD_IRQHandler(&hpcd_HS);
  150. }
  151. /**
  152. * @brief This function handles SDMMC1 global interrupt request.
  153. * @param None
  154. * @retval None
  155. */
  156. void BSP_SDMMC_IRQHandler(void)
  157. {
  158. HAL_SD_IRQHandler(&uSdHandle);
  159. }
  160. /**
  161. * @brief This function handles DMA2 Stream 6 interrupt request.
  162. * @param None
  163. * @retval None
  164. */
  165. void BSP_SDMMC_DMA_Tx_IRQHandler(void)
  166. {
  167. HAL_DMA_IRQHandler(uSdHandle.hdmatx);
  168. }
  169. /**
  170. * @brief This function handles DMA2 Stream 3 interrupt request.
  171. * @param None
  172. * @retval None
  173. */
  174. void BSP_SDMMC_DMA_Rx_IRQHandler(void)
  175. {
  176. HAL_DMA_IRQHandler(uSdHandle.hdmarx);
  177. }
  178. /**
  179. * @brief This function handles External lines 15 to 10 interrupt request.
  180. * @param None
  181. * @retval None
  182. */
  183. void EXTI15_10_IRQHandler(void)
  184. {
  185. HAL_GPIO_EXTI_IRQHandler(TAMPER_BUTTON_PIN);
  186. }
  187. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/