1 #include "stm32f4_discovery_audio.h" 2 3 // support for I2S/I2C CS43L22 codec is provided by bsp/stm32f4_discovery_audio.c and not by STM32CubeMX 4 // we need to provide the missing IRQ handler somewhere 5 6 extern I2S_HandleTypeDef hAudioOutI2s; 7 extern I2S_HandleTypeDef hAudioInI2s; 8 9 /** 10 * @brief This function handles main I2S interrupt. 11 * @param None 12 * @retval 0 if correct communication, else wrong communication 13 */ DMA1_Stream7_IRQHandler(void)14void DMA1_Stream7_IRQHandler(void) 15 { 16 HAL_DMA_IRQHandler(hAudioOutI2s.hdmatx); 17 } 18 19 /** 20 * @brief This function handles main I2S interrupt. 21 * @param None 22 * @retval 0 if correct communication, else wrong communication 23 */ DMA1_Stream3_IRQHandler(void)24void DMA1_Stream3_IRQHandler(void) 25 { 26 HAL_DMA_IRQHandler(hAudioInI2s.hdmarx); 27 } 28