DISCOVERY BOARD AUDIO RECORD AND PLAYBACK. Errors are currently with LCD and QSPI definitions.

Dependencies:   BSP

Committer:
EricLew
Date:
Sun Nov 22 21:16:18 2015 +0000
Revision:
3:233580d5c68e
Parent:
0:c8cd09e8b137
11/22/2015

Who changed what in which revision?

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