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