blob: a5e5a06d3e281b37a93645b21e50305b1ae889a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef __DRV_SDIO_H__
#define __DRV_SDIO_H__
#include <rtthread.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
SDIO_DEVICE_TYPE_NORMAL = 0, //!< Normal transfer type for SD/SDHC/MMC cards (default)
SDIO_DEVICE_TYPE_WIFI,
} SDIO_DEVICE_TYPE_E;
struct gk_sdio_info
{
rt_uint32_t id;
SDIO_DEVICE_TYPE_E type;
};
struct gk_sdio
{
struct rt_mmcsd_host *host;
struct rt_mmcsd_req *req;
struct rt_mmcsd_cmd *cmd;
struct rt_completion completion;
void *priv;
};
void rt_hw_sdio_init(void);
#ifdef __cplusplus
}
#endif
#endif
|