components/driver/i2s.c
/**
 * @brief   I2S tx start
 *
 * @param   i2s_num     I2S device number
 */
@brief   I2S tx start
@param   i2s_num     I2S device number
@brief I2S tx start @param i2s_num I2S device number
static void i2s_tx_start(i2s_port_t i2s_num)
{
#if SOC_GDMA_SUPPORTED
    gdma_start(p_i2s[i2s_num]->tx_dma_chan, (uint32_t) p_i2s[i2s_num]->tx->desc[0]);
#else
    i2s_hal_enable_tx_dma(&(p_i2s[i2s_num]->hal));
    i2s_hal_enable_tx_intr(&(p_i2s[i2s_num]->hal));
    i2s_hal_start_tx_link(&(p_i2s[i2s_num]->hal), (uint32_t) p_i2s[i2s_num]->tx->desc[0]);
#endif
    i2s_hal_start_tx(&(p_i2s[i2s_num]->hal));
}
static void i2s_tx_start ( i2s_port_t i2s_num ) { #if SOC_GDMA_SUPPORTED gdma_start ( p_i2s [ i2s_num ] -> tx_dma_chan , ( uint32_t ) p_i2s [ i2s_num ] -> tx -> desc [ 0 ] ) ; #else i2s_hal_enable_tx_dma ( & ( p_i2s [ i2s_num ] -> hal ) ) ; i2s_hal_enable_tx_intr ( & ( p_i2s [ i2s_num ] -> hal ) ) ; i2s_hal_start_tx_link ( & ( p_i2s [ i2s_num ] -> hal ) , ( uint32_t ) p_i2s [ i2s_num ] -> tx -> desc [ 0 ] ) ; #endif i2s_hal_start_tx ( & ( p_i2s [ i2s_num ] -> hal ) ) ; }
@brief   I2S tx start
 @param   i2s_num     I2S device number
@brief I2S tx start @param i2s_num I2S device number