/Projects/STM32756G_EVAL/Applications/USB_Host/AUDIO_Standalone/Src/stm32f7xx_it.c

https://github.com/STMicroelectronics/STM32CubeF7 · C · 210 lines · 71 code · 20 blank · 119 comment · 4 complexity · 914c495cbac5584af066238108a2a16b MD5 · raw file

  1. /**
  2. ******************************************************************************
  3. * @file USB_Host/AUDIO_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) 2017 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32f7xx_it.h"
  29. /* Private typedef -----------------------------------------------------------*/
  30. /* Private define ------------------------------------------------------------*/
  31. /* Private macro -------------------------------------------------------------*/
  32. /* Private variables ---------------------------------------------------------*/
  33. extern HCD_HandleTypeDef hhcd;
  34. extern SD_HandleTypeDef uSdHandle;
  35. /* Private function prototypes -----------------------------------------------*/
  36. /* Private functions ---------------------------------------------------------*/
  37. /******************************************************************************/
  38. /* Cortex-M7 Processor Exceptions Handlers */
  39. /******************************************************************************/
  40. /**
  41. * @brief This function handles NMI exception.
  42. * @param None
  43. * @retval None
  44. */
  45. void NMI_Handler(void)
  46. {
  47. }
  48. /**
  49. * @brief This function handles Hard Fault exception.
  50. * @param None
  51. * @retval None
  52. */
  53. void HardFault_Handler(void)
  54. {
  55. /* Go to infinite loop when Hard Fault exception occurs */
  56. while (1)
  57. {
  58. }
  59. }
  60. /**
  61. * @brief This function handles Memory Manage exception.
  62. * @param None
  63. * @retval None
  64. */
  65. void MemManage_Handler(void)
  66. {
  67. /* Go to infinite loop when Memory Manage exception occurs */
  68. while (1)
  69. {
  70. }
  71. }
  72. /**
  73. * @brief This function handles Bus Fault exception.
  74. * @param None
  75. * @retval None
  76. */
  77. void BusFault_Handler(void)
  78. {
  79. /* Go to infinite loop when Bus Fault exception occurs */
  80. while (1)
  81. {
  82. }
  83. }
  84. /**
  85. * @brief This function handles Usage Fault exception.
  86. * @param None
  87. * @retval None
  88. */
  89. void UsageFault_Handler(void)
  90. {
  91. /* Go to infinite loop when Usage Fault exception occurs */
  92. while (1)
  93. {
  94. }
  95. }
  96. /**
  97. * @brief This function handles SVCall exception.
  98. * @param None
  99. * @retval None
  100. */
  101. void SVC_Handler(void)
  102. {
  103. }
  104. /**
  105. * @brief This function handles Debug Monitor exception.
  106. * @param None
  107. * @retval None
  108. */
  109. void DebugMon_Handler(void)
  110. {
  111. }
  112. /**
  113. * @brief This function handles PendSVC exception.
  114. * @param None
  115. * @retval None
  116. */
  117. void PendSV_Handler(void)
  118. {
  119. }
  120. /**
  121. * @brief This function handles SysTick Handler.
  122. * @param None
  123. * @retval None
  124. */
  125. void SysTick_Handler(void)
  126. {
  127. HAL_IncTick();
  128. }
  129. /******************************************************************************/
  130. /* STM32F7xx Peripherals Interrupt Handlers */
  131. /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
  132. /* available peripheral interrupt handler's name please refer to the startup */
  133. /* file (startup_stm32f7xx.s). */
  134. /******************************************************************************/
  135. /**
  136. * @brief This function handles USB-On-The-Go FS/HS global interrupt request.
  137. * @param None
  138. * @retval None
  139. */
  140. #ifdef USE_USB_FS
  141. void OTG_FS_IRQHandler(void)
  142. #else
  143. void OTG_HS_IRQHandler(void)
  144. #endif
  145. {
  146. HAL_HCD_IRQHandler(&hhcd);
  147. }
  148. /**
  149. * @brief This function handles External Line[9:5] interrupt request.
  150. * @param None
  151. * @retval None
  152. */
  153. void EXTI9_5_IRQHandler(void)
  154. {
  155. HAL_GPIO_EXTI_IRQHandler(MFX_IRQOUT_PIN);
  156. }
  157. /**
  158. * @brief Handles SD1 card interrupt request.
  159. * @retval None
  160. */
  161. void BSP_SDMMC_IRQHandler(void)
  162. {
  163. HAL_SD_IRQHandler(&uSdHandle);
  164. }
  165. /**
  166. * @brief Handles SDMMC1 DMA Tx transfer interrupt request.
  167. * @retval None
  168. */
  169. void BSP_SDMMC_DMA_Tx_IRQHandler(void)
  170. {
  171. HAL_DMA_IRQHandler(uSdHandle.hdmatx);
  172. }
  173. /**
  174. * @brief Handles SDMMC1 DMA Rx transfer interrupt request.
  175. * @retval None
  176. */
  177. void BSP_SDMMC_DMA_Rx_IRQHandler(void)
  178. {
  179. HAL_DMA_IRQHandler(uSdHandle.hdmarx);
  180. }
  181. /**
  182. * @brief This function handles External line 15_10 interrupt request.
  183. * @param None
  184. * @retval None
  185. */
  186. void EXTI15_10_IRQHandler(void)
  187. {
  188. HAL_GPIO_EXTI_IRQHandler(TAMPER_BUTTON_PIN);
  189. }
  190. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/