|

楼主 |
发表于 2020-12-28 11:30:28
|
显示全部楼层
/*
*********************************************************************************************************
* 函 数 名: UnmountSD
* 功能说明: 卸载SD卡
* 形 参: 无
* 返 回 值: 无
*********************************************************************************************************
*/
void UnmountSD(void)
{
uint8_t result;
/* 卸载SD卡 */
result = funinit("M0:");
if(result != NULL)
{
printf_libdbg("卸载文件系统失败\r\n");
}
else
{
printf_libdbg("卸载文件系统成功\r\n");
}
}
funinit来源于FS_CM3.Lib,没办法在查找了,也不了解FS。看到这个结构体,
/* MCI Device Driver Control Block */
MCI_DRV __DRV_ID = {
Init,
UnInit,
Delay,
BusMode,
BusWidth,
BusSpeed,
Command,
ReadBlock,
WriteBlock,
SetDma,
CheckMedia /* Can be NULL if not existing */
};
加载时调用Init,那么卸载时要调用UnInit?
|
|