2022-02-21 13:13:19 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2019-06-06 09:00:03 +00: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
|
|
|
|
*/
|
2019-07-15 06:44:15 +00:00
|
|
|
const i2s_signal_conn_t i2s_periph_signal[SOC_I2S_NUM] = {
|
2019-06-06 09:00:03 +00:00
|
|
|
{
|
2021-07-27 07:54:31 +00:00
|
|
|
.mck_out_sig = -1, // Unavailable
|
2021-08-02 11:17:29 +00:00
|
|
|
|
|
|
|
.m_tx_bck_sig = I2S0O_BCK_OUT_IDX,
|
|
|
|
.m_rx_bck_sig = I2S0I_BCK_OUT_IDX,
|
|
|
|
.m_tx_ws_sig = I2S0O_WS_OUT_IDX,
|
|
|
|
.m_rx_ws_sig = I2S0I_WS_OUT_IDX,
|
|
|
|
|
|
|
|
.s_tx_bck_sig = I2S0O_BCK_IN_IDX,
|
|
|
|
.s_rx_bck_sig = I2S0I_BCK_IN_IDX,
|
|
|
|
.s_tx_ws_sig = I2S0O_WS_IN_IDX,
|
|
|
|
.s_rx_ws_sig = I2S0I_WS_IN_IDX,
|
|
|
|
|
2020-06-01 01:47:48 +00:00
|
|
|
.data_out_sig = I2S0O_DATA_OUT23_IDX,
|
|
|
|
.data_in_sig = I2S0I_DATA_IN15_IDX,
|
2021-08-02 11:17:29 +00:00
|
|
|
|
2021-07-27 07:54:31 +00:00
|
|
|
.irq = ETS_I2S0_INTR_SOURCE,
|
|
|
|
.module = PERIPH_I2S0_MODULE,
|
2019-06-06 09:00:03 +00:00
|
|
|
},
|
|
|
|
{
|
2021-07-27 07:54:31 +00:00
|
|
|
.mck_out_sig = -1, // Unavailable
|
2021-08-02 11:17:29 +00:00
|
|
|
|
|
|
|
.m_tx_bck_sig = I2S1O_BCK_OUT_IDX,
|
|
|
|
.m_rx_bck_sig = I2S1I_BCK_OUT_IDX,
|
|
|
|
.m_tx_ws_sig = I2S1O_WS_OUT_IDX,
|
|
|
|
.m_rx_ws_sig = I2S1I_WS_OUT_IDX,
|
|
|
|
|
|
|
|
.s_tx_bck_sig = I2S1O_BCK_IN_IDX,
|
|
|
|
.s_rx_bck_sig = I2S1I_BCK_IN_IDX,
|
|
|
|
.s_tx_ws_sig = I2S1O_WS_IN_IDX,
|
|
|
|
.s_rx_ws_sig = I2S1I_WS_IN_IDX,
|
|
|
|
|
2020-06-01 01:47:48 +00:00
|
|
|
.data_out_sig = I2S1O_DATA_OUT23_IDX,
|
|
|
|
.data_in_sig = I2S1I_DATA_IN15_IDX,
|
2021-08-02 11:17:29 +00:00
|
|
|
|
2021-07-27 07:54:31 +00:00
|
|
|
.irq = ETS_I2S1_INTR_SOURCE,
|
|
|
|
.module = PERIPH_I2S1_MODULE,
|
2019-06-06 09:00:03 +00:00
|
|
|
}
|
|
|
|
};
|