diff options
| author | Bernard Xiong <[email protected]> | 2016-05-20 12:20:35 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2016-05-20 12:20:35 +0800 |
| commit | 02a5cebc6dd19f0f209d75ca2f79aa6384450434 (patch) | |
| tree | e8a868c8cbd3b7ff67a68926a4748b71aec6eb7d /components/drivers/include | |
| parent | 4d45dc45bd420bf4409657fa7f702965b8455df5 (diff) | |
[DeviceDrivers] Add MMC/SD change support.
Add MMC/SD change support, which patched by FH.
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/mmcsd_core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/mmcsd_core.h b/components/drivers/include/drivers/mmcsd_core.h index 1e5560b893..e474fa28a8 100644 --- a/components/drivers/include/drivers/mmcsd_core.h +++ b/components/drivers/include/drivers/mmcsd_core.h @@ -220,6 +220,10 @@ rt_inline rt_uint32_t fls(rt_uint32_t val) return bit; } +#define MMCSD_HOST_PLUGED 0 +#define MMCSD_HOST_UNPLUGED 1 + +int mmcsd_wait_cd_changed(rt_int32_t timeout); void mmcsd_host_lock(struct rt_mmcsd_host *host); void mmcsd_host_unlock(struct rt_mmcsd_host *host); void mmcsd_req_complete(struct rt_mmcsd_host *host); |
