components/driver/i2s.c
/**
 * @brief   I2S tx stop
 *
 * @param   i2s_num     I2S device number
 */
@brief   I2S tx stop
@param   i2s_num     I2S device number
@brief I2S tx stop @param i2s_num I2S device number
static void i2s_tx_stop(i2s_port_t i2s_num)
{
    i2s_hal_stop_tx(&(p_i2s[i2s_num]->hal));
#if SOC_GDMA_SUPPORTED
    gdma_stop(p_i2s[i2s_num]->tx_dma_chan);
#else
    i2s_hal_stop_tx_link(&(p_i2s[i2s_num]->hal));
    i2s_hal_disable_tx_intr(&(p_i2s[i2s_num]->hal));
    i2s_hal_disable_tx_dma(&(p_i2s[i2s_num]->hal));
#endif
}
static void i2s_tx_stop ( i2s_port_t i2s_num ) { i2s_hal_stop_tx ( & ( p_i2s [ i2s_num ] -> hal ) ) ; #if SOC_GDMA_SUPPORTED gdma_stop ( p_i2s [ i2s_num ] -> tx_dma_chan ) ; #else i2s_hal_stop_tx_link ( & ( p_i2s [ i2s_num ] -> hal ) ) ; i2s_hal_disable_tx_intr ( & ( p_i2s [ i2s_num ] -> hal ) ) ; i2s_hal_disable_tx_dma ( & ( p_i2s [ i2s_num ] -> hal ) ) ; #endif }
@brief   I2S tx stop
 @param   i2s_num     I2S device number
@brief I2S tx stop @param i2s_num I2S device number