MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _sdcard_unmount

Function _sdcard_unmount

bsp/ft2004/drivers/drv_sdcard.c:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static void _sdcard_unmount(void)
65{
66 rt_thread_mdelay(200);
67 dfs_unmount("/");
68 LOG_I("Unmount \"/\"");
69
70 mmcsd_wait_cd_changed(0);
71 ft2004_mmcsd_change();
72 mmcsd_wait_cd_changed(rt_tick_from_millisecond(5000));
73 LOG_I("Unmount is over \r\n");
74}
75
76static void sd_mount(void *parameter)
77{

Callers 1

sd_mountFunction · 0.70

Calls 5

rt_thread_mdelayFunction · 0.85
mmcsd_wait_cd_changedFunction · 0.85
ft2004_mmcsd_changeFunction · 0.85
rt_tick_from_millisecondFunction · 0.85
dfs_unmountFunction · 0.50

Tested by

no test coverage detected