summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2016-05-20 12:20:35 +0800
committerBernard Xiong <[email protected]>2016-05-20 12:20:35 +0800
commit02a5cebc6dd19f0f209d75ca2f79aa6384450434 (patch)
treee8a868c8cbd3b7ff67a68926a4748b71aec6eb7d /components/drivers/include
parent4d45dc45bd420bf4409657fa7f702965b8455df5 (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.h4
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);