2022-02-21 08:13:19 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-11-25 23:39:49 -05:00
|
|
|
|
|
|
|
#include "soc/i2s_periph.h"
|
|
|
|
#include "soc/gpio_sig_map.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
Bunch of constants for every I2S peripheral: GPIO signals, irqs, hw addr of registers etc
|
|
|
|
*/
|
|
|
|
const i2s_signal_conn_t i2s_periph_signal[SOC_I2S_NUM] = {
|
|
|
|
{
|
2021-07-27 03:54:31 -04:00
|
|
|
.mck_out_sig = I2S_MCLK_OUT_IDX,
|
2021-08-02 07:17:29 -04:00
|
|
|
|
|
|
|
.m_tx_bck_sig = I2SO_BCK_OUT_IDX,
|
|
|
|
.m_rx_bck_sig = I2SI_BCK_OUT_IDX,
|
|
|
|
.m_tx_ws_sig = I2SO_WS_OUT_IDX,
|
|
|
|
.m_rx_ws_sig = I2SI_WS_OUT_IDX,
|
|
|
|
|
|
|
|
.s_tx_bck_sig = I2SO_BCK_IN_IDX,
|
|
|
|
.s_rx_bck_sig = I2SI_BCK_IN_IDX,
|
|
|
|
.s_tx_ws_sig = I2SO_WS_IN_IDX,
|
|
|
|
.s_rx_ws_sig = I2SI_WS_IN_IDX,
|
|
|
|
|
2021-07-27 03:54:31 -04:00
|
|
|
.data_out_sig = I2SO_SD_OUT_IDX,
|
|
|
|
.data_in_sig = I2SI_SD_IN_IDX,
|
2021-08-02 07:17:29 -04:00
|
|
|
|
2021-07-27 03:54:31 -04:00
|
|
|
.irq = -1,
|
|
|
|
.module = PERIPH_I2S1_MODULE,
|
2020-11-25 23:39:49 -05:00
|
|
|
}
|
|
|
|
};
|