1 // Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #include "soc/sdmmc_periph.h" 16 17 const sdmmc_slot_info_t sdmmc_slot_info[2] = { 18 { 19 .clk_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_CLK, 20 .cmd_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_CMD, 21 .d0_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D0, 22 .d1_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D1, 23 .d2_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D2, 24 .d3_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D3, 25 .d4_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D4, 26 .d5_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D5, 27 .d6_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D6, 28 .d7_gpio = SDMMC_SLOT0_IOMUX_PIN_NUM_D7, 29 .card_detect = HOST_CARD_DETECT_N_1_IDX, 30 .write_protect = HOST_CARD_WRITE_PRT_1_IDX, 31 .card_int = HOST_CARD_INT_N_1_IDX, 32 .width = 8 33 }, 34 { 35 .clk_gpio = SDMMC_SLOT1_IOMUX_PIN_NUM_CLK, 36 .cmd_gpio = SDMMC_SLOT1_IOMUX_PIN_NUM_CMD, 37 .d0_gpio = SDMMC_SLOT1_IOMUX_PIN_NUM_D0, 38 .d1_gpio = SDMMC_SLOT1_IOMUX_PIN_NUM_D1, 39 .d2_gpio = SDMMC_SLOT1_IOMUX_PIN_NUM_D2, 40 .d3_gpio = SDMMC_SLOT1_IOMUX_PIN_NUM_D3, 41 .d4_gpio = -1, //slot1 has no D4-7 42 .d5_gpio = -1, 43 .d6_gpio = -1, 44 .d7_gpio = -1, 45 .card_detect = HOST_CARD_DETECT_N_2_IDX, 46 .write_protect = HOST_CARD_WRITE_PRT_2_IDX, 47 .card_int = HOST_CARD_INT_N_2_IDX, 48 .width = 4 49 } 50 }; 51