FRESULT f_mount (
FATFS* fs, /* Pointer to the file system object (NULL:unmount)*/
const TCHAR* path, /* Logical drive number to be mounted/unmounted */
BYTE opt /* 0o not mount (delayed mount), 1:Mount immediately */
)
请问调用时怎么写 path?
如果在diskio.c这样定义的:
/* Definitions of physical drive number for each drive */
#define ATA 0 /* Example: Map ATA harddisk to physical drive 0 */
#define MMC 1 /* Example: Map MMC/SD card to physical drive 1 */
#define USB 2 /* Example: Map USB MSD to physical drive 2 */
那么调用时就应该是f_mount(&fs,"1", 0), ''1''表示MMC/SD卡,请问我这样理解对吗?
另外 opt 应该写0还是写1呢? |