• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #pragma once
16 #include <stdint.h>
17 //include soc related (generated) definitions
18 #include "soc/soc_pins.h"
19 #include "soc/sdmmc_reg.h"
20 #include "soc/sdmmc_struct.h"
21 #include "soc/gpio_sig_map.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 typedef struct {
28     uint8_t clk_gpio;
29     uint8_t cmd_gpio;
30     uint8_t d0_gpio;
31     uint8_t d1_gpio;
32     uint8_t d2_gpio;
33     uint8_t d3_gpio;
34     uint8_t d4_gpio;
35     uint8_t d5_gpio;
36     uint8_t d6_gpio;
37     uint8_t d7_gpio;
38     uint8_t card_detect;
39     uint8_t write_protect;
40     uint8_t card_int;
41     uint8_t width;
42 } sdmmc_slot_info_t;
43 
44 /** pin and signal information of each slot */
45 extern const sdmmc_slot_info_t sdmmc_slot_info[];
46 
47 #ifdef __cplusplus
48 }
49 #endif
50