mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
i2s: support 4 line pdm rx on esp32s3
This commit is contained in:
@@ -24,9 +24,12 @@ const i2s_signal_conn_t i2s_periph_signal[SOC_I2S_NUM] = {
|
||||
.s_tx_ws_sig = I2S0O_WS_IN_IDX,
|
||||
.s_rx_ws_sig = I2S0I_WS_IN_IDX,
|
||||
|
||||
.data_out_sig = I2S0O_SD_OUT_IDX,
|
||||
.data_out1_sig = I2S0O_SD1_OUT_IDX,
|
||||
.data_in_sig = I2S0I_SD_IN_IDX,
|
||||
.data_out_sigs[0] = I2S0O_SD_OUT_IDX,
|
||||
.data_out_sigs[1] = I2S0O_SD1_OUT_IDX,
|
||||
.data_in_sigs[0] = I2S0I_SD_IN_IDX,
|
||||
.data_in_sigs[1] = I2S0I_SD1_IN_IDX,
|
||||
.data_in_sigs[2] = I2S0I_SD2_IN_IDX,
|
||||
.data_in_sigs[3] = I2S0I_SD3_IN_IDX,
|
||||
|
||||
.irq = -1,
|
||||
.module = PERIPH_I2S0_MODULE,
|
||||
@@ -44,9 +47,12 @@ const i2s_signal_conn_t i2s_periph_signal[SOC_I2S_NUM] = {
|
||||
.s_tx_ws_sig = I2S1O_WS_IN_IDX,
|
||||
.s_rx_ws_sig = I2S1I_WS_IN_IDX,
|
||||
|
||||
.data_out_sig = I2S1O_SD_OUT_IDX,
|
||||
.data_out1_sig = -1,
|
||||
.data_in_sig = I2S1I_SD_IN_IDX,
|
||||
.data_out_sigs[0] = I2S1O_SD_OUT_IDX,
|
||||
.data_out_sigs[1] = -1,
|
||||
.data_in_sigs[0] = I2S1I_SD_IN_IDX,
|
||||
.data_in_sigs[1] = -1,
|
||||
.data_in_sigs[2] = -1,
|
||||
.data_in_sigs[3] = -1,
|
||||
|
||||
.irq = -1,
|
||||
.module = PERIPH_I2S1_MODULE,
|
||||
|
@@ -444,10 +444,18 @@ config SOC_I2S_SUPPORTS_PDM
|
||||
default y
|
||||
|
||||
config SOC_I2S_SUPPORTS_PDM_TX
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_I2S_PDM_MAX_TX_LINES
|
||||
int
|
||||
default 2
|
||||
|
||||
config SOC_I2S_SUPPORTS_PDM_RX
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_I2S_PDM_MAX_RX_LINES
|
||||
int
|
||||
default 4
|
||||
|
||||
|
@@ -1,16 +1,8 @@
|
||||
// Copyright 2017-2021 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef _SOC_GPIO_SIG_MAP_H_
|
||||
#define _SOC_GPIO_SIG_MAP_H_
|
||||
|
||||
@@ -113,11 +105,11 @@
|
||||
#define BB_DIAG14_IDX 49
|
||||
#define GPIO_BT_PRIORITY_IDX 50
|
||||
#define BB_DIAG15_IDX 50
|
||||
#define I2S0I_SD1_IN_IDX 51
|
||||
#define I2S0I_SD1_IN_IDX 51 // Only used in I2S PDM RX mode
|
||||
#define BB_DIAG16_IDX 51
|
||||
#define I2S0I_SD2_IN_IDX 52
|
||||
#define I2S0I_SD2_IN_IDX 52 // Only used in I2S PDM RX mode
|
||||
#define BB_DIAG17_IDX 52
|
||||
#define I2S0I_SD3_IN_IDX 53
|
||||
#define I2S0I_SD3_IN_IDX 53 // Only used in I2S PDM RX mode
|
||||
#define BB_DIAG18_IDX 53
|
||||
#define CORE1_GPIO_IN7_IDX 54
|
||||
#define CORE1_GPIO_OUT7_IDX 54
|
||||
@@ -232,7 +224,7 @@
|
||||
#define SUBSPICS1_OUT_IDX 125
|
||||
#define FSPIDQS_OUT_IDX 126
|
||||
#define SPI3_CS2_OUT_IDX 127
|
||||
#define I2S0O_SD1_OUT_IDX 128
|
||||
#define I2S0O_SD1_OUT_IDX 128 // Only used in I2S PDM TX mode
|
||||
#define CORE1_GPIO_IN0_IDX 129
|
||||
#define CORE1_GPIO_OUT0_IDX 129
|
||||
#define CORE1_GPIO_IN1_IDX 130
|
||||
|
@@ -186,8 +186,10 @@
|
||||
#define SOC_I2S_SUPPORTS_XTAL (1)
|
||||
#define SOC_I2S_SUPPORTS_PCM (1)
|
||||
#define SOC_I2S_SUPPORTS_PDM (1)
|
||||
#define SOC_I2S_SUPPORTS_PDM_TX (2)
|
||||
#define SOC_I2S_SUPPORTS_PDM_RX (4)
|
||||
#define SOC_I2S_SUPPORTS_PDM_TX (1)
|
||||
#define SOC_I2S_PDM_MAX_TX_LINES (2)
|
||||
#define SOC_I2S_SUPPORTS_PDM_RX (1)
|
||||
#define SOC_I2S_PDM_MAX_RX_LINES (4)
|
||||
#define SOC_I2S_SUPPORTS_TDM (1)
|
||||
|
||||
/*-------------------------- LEDC CAPS ---------------------------------------*/
|
||||
|
Reference in New Issue
Block a user