Team Riedel - display

Dependencies:   LCD_fonts SPI_TFT_ILI9341 CMSIS_DSP_401_without_cm4 mbed-src SDFileSystem wavfile

Committer:
linx0576
Date:
Mon Dec 14 22:13:11 2015 +0000
Revision:
13:ab0285338951
Parent:
9:5a860b9c8a6a
update

Who changed what in which revision?

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