components/driver/i2s.c
/**
 * @brief   I2S tx reset
 *
 * @param   i2s_num     I2S device number
 */
@brief   I2S tx reset
@param   i2s_num     I2S device number
@brief I2S tx reset @param i2s_num I2S device number
static void i2s_tx_reset(i2s_port_t i2s_num)
{
    p_i2s[i2s_num]->tx->curr_ptr = NULL;
    p_i2s[i2s_num]->tx->rw_pos = 0;
    i2s_hal_reset_tx(&(p_i2s[i2s_num]->hal));
#if SOC_GDMA_SUPPORTED
    gdma_reset(p_i2s[i2s_num]->tx_dma_chan);
#else
    i2s_hal_reset_txdma(&(p_i2s[i2s_num]->hal));
#endif
    i2s_hal_reset_tx_fifo(&(p_i2s[i2s_num]->hal));
}
static void i2s_tx_reset ( i2s_port_t i2s_num ) { p_i2s [ i2s_num ] -> tx -> curr_ptr = NULL ; p_i2s [ i2s_num ] -> tx -> rw_pos = 0 ; i2s_hal_reset_tx ( & ( p_i2s [ i2s_num ] -> hal ) ) ; #if SOC_GDMA_SUPPORTED gdma_reset ( p_i2s [ i2s_num ] -> tx_dma_chan ) ; #else i2s_hal_reset_txdma ( & ( p_i2s [ i2s_num ] -> hal ) ) ; #endif i2s_hal_reset_tx_fifo ( & ( p_i2s [ i2s_num ] -> hal ) ) ; }
@brief   I2S tx reset
 @param   i2s_num     I2S device number
@brief I2S tx reset @param i2s_num I2S device number