From 02a5cebc6dd19f0f209d75ca2f79aa6384450434 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Fri, 20 May 2016 12:20:35 +0800 Subject: [DeviceDrivers] Add MMC/SD change support. Add MMC/SD change support, which patched by FH. --- components/drivers/include/drivers/mmcsd_core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components/drivers/include') 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); -- cgit v1.3.1