kopia lustrzana https://github.com/espressif/esp-idf
76 wiersze
2.0 KiB
C
76 wiersze
2.0 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 = SD_CARD_DETECT_N_1_PAD_IN_IDX,
|
|
.write_protect = SD_CARD_WRITE_PRT_1_PAD_IN_IDX,
|
|
.card_int = SD_CARD_INT_N_1_PAD_IN_IDX,
|
|
},
|
|
{
|
|
.width = 8,
|
|
.card_detect = SD_CARD_DETECT_N_2_PAD_IN_IDX,
|
|
.write_protect = SD_CARD_WRITE_PRT_2_PAD_IN_IDX,
|
|
.card_int = SD_CARD_INT_N_2_PAD_IN_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 = -1,
|
|
.cmd = -1,
|
|
.d0 = -1,
|
|
.d1 = -1,
|
|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