mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
77 lines
1.9 KiB
C
77 lines
1.9 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "soc/sdmmc_periph.h"
|
|
|
|
const sdmmc_slot_info_t sdmmc_slot_info[SOC_SDMMC_NUM_SLOTS] = {
|
|
{
|
|
.width = 8,
|
|
.card_detect = HOST_CARD_DETECT_N_1_IDX,
|
|
.write_protect = HOST_CARD_WRITE_PRT_1_IDX,
|
|
.card_int = HOST_CARD_INT_N_1_IDX,
|
|
},
|
|
{
|
|
.width = 4,
|
|
.card_detect = HOST_CARD_DETECT_N_2_IDX,
|
|
.write_protect = HOST_CARD_WRITE_PRT_2_IDX,
|
|
.card_int = HOST_CARD_INT_N_2_IDX,
|
|
}
|
|
};
|
|
|
|
const sdmmc_slot_io_info_t sdmmc_slot_gpio_num[SOC_SDMMC_NUM_SLOTS] = {
|
|
{
|
|
.clk = SDMMC_SLOT0_IOMUX_PIN_NUM_CLK,
|
|
.cmd = SDMMC_SLOT0_IOMUX_PIN_NUM_CMD,
|
|
.d0 = SDMMC_SLOT0_IOMUX_PIN_NUM_D0,
|
|
.d1 = SDMMC_SLOT0_IOMUX_PIN_NUM_D1,
|
|
.d2 = SDMMC_SLOT0_IOMUX_PIN_NUM_D2,
|
|
.d3 = SDMMC_SLOT0_IOMUX_PIN_NUM_D3,
|
|
.d4 = SDMMC_SLOT0_IOMUX_PIN_NUM_D4,
|
|
.d5 = SDMMC_SLOT0_IOMUX_PIN_NUM_D5,
|
|
.d6 = SDMMC_SLOT0_IOMUX_PIN_NUM_D6,
|
|
.d7 = SDMMC_SLOT0_IOMUX_PIN_NUM_D7,
|
|
},
|
|
{
|
|
.clk = SDMMC_SLOT1_IOMUX_PIN_NUM_CLK,
|
|
.cmd = SDMMC_SLOT1_IOMUX_PIN_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