cancel
Showing results for 
Search instead for 
Did you mean: 

I2S Interrupt in STM32F407

nima2
Associate II
Posted on March 02, 2017 at 14:17

Hi.

I would like to use I2S interrupt, So I wrote following code, But none of the call back fanction not excuted!

could you please guide me where is my problem ?

note: I can get data in a pooling way with HAL_I2SEx_TransmitReceive(&hi2s2,Txbuff,Rxbuff,2,10);

//***********************************************************

    uint8_t St=HAL_I2SEx_TransmitReceive_IT(&hi2s2,Txbuff,Rxbuff,2);

void HAL_I2S_RxCpltCallback (I2S_HandleTypeDef* hi2s)

{

       Debugger_Send_Data('\n***RX***\n');

}

void HAL_I2S_TxCpltCallback(I2S_HandleTypeDef *hi2s)

{

        Debugger_Send_Data('\n***TX***\n');

}

//***********************************************************

#i2s #stm32f407
0 REPLIES 0