/Projects/STM324x9I_EVAL/Applications/USB_Host/MTP_Standalone/Src/stm32f4xx_it.c

https://github.com/fboris/STM32Cube_FW_F4 · C · 198 lines · 65 code · 19 blank · 114 comment · 4 complexity · 74a20840036b082b4696ddbf8a3a338b MD5 · raw file

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