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_caps.h"
19 #include "soc/soc_pins.h"
20 #ifdef SOC_SDIO_SLAVE_SUPPORTED
21 #include "soc/slc_reg.h"
22 #include "soc/slc_struct.h"
23 #endif
24 #include "soc/host_reg.h"
25 #include "soc/host_struct.h"
26 #include "soc/hinf_reg.h"
27 #include "soc/hinf_struct.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /** pin and signal information of each slot */
34 typedef struct {
35     uint32_t clk_gpio;
36     uint32_t cmd_gpio;
37     uint32_t d0_gpio;
38     uint32_t d1_gpio;
39     uint32_t d2_gpio;
40     uint32_t d3_gpio;
41     int      func;
42 } sdio_slave_slot_info_t;
43 
44 extern const sdio_slave_slot_info_t sdio_slave_slot_info[];
45 
46 #ifdef __cplusplus
47 }
48 #endif
49