/-----------------------------------------------------------------------------/
/ Petit FatFs module is an open source software to implement FAT file system to
/ small embedded systems. This is a free software and is opened for education,
-/ research and commercial developments under license policy of following trems.
+/ research and commercial developments under license policy of following terms.
/
/ Copyright (C) 2010, ChaN, all right reserved.
/
#endif
}
- return 1; /* An error occured at the disk I/O layer */
+ return 1; /* An error occurred at the disk I/O layer */
}
/*-----------------------------------------------------------------------*/
static
-FRESULT dir_next ( /* FR_OK:Succeeded, FR_NO_FILE:End of table, FR_DENIED:EOT and could not streach */
+FRESULT dir_next ( /* FR_OK:Succeeded, FR_NO_FILE:End of table, FR_DENIED:EOT and could not stretch */
DIR *dj /* Pointer to directory object */
)
{
sfn[i++] = c;
}
if (!i) return FR_INVALID_NAME; /* Reject null string */
- *path = &p[si]; /* Rerurn pointer to the next segment */
+ *path = &p[si]; /* Rerun pointer to the next segment */
sfn[11] = (c < ' ') ? 1 : 0; /* Set last segment flag if end of path */
/*-----------------------------------------------------------------------*/
-/* Mount/Unmount a Locical Drive */
+/* Mount/Unmount a Logical Drive */
/*-----------------------------------------------------------------------*/
FRESULT pf_mount (
}
}
if (fmt == 3) return FR_DISK_ERR;
- if (fmt) return FR_NO_FILESYSTEM; /* No valid FAT patition is found */
+ if (fmt) return FR_NO_FILESYSTEM; /* No valid FAT partition is found */
/* Initialize the file system object */
if (disk_readp(buf, bsect, 13, sizeof(buf))) return FR_DISK_ERR;
fsize *= buf[BPB_NumFATs-13]; /* Number of sectors in FAT area */
fs->fatbase = bsect + LD_WORD(buf+BPB_RsvdSecCnt-13); /* FAT start sector (lba) */
fs->csize = buf[BPB_SecPerClus-13]; /* Number of sectors per cluster */
- fs->n_rootdir = LD_WORD(buf+BPB_RootEntCnt-13); /* Nmuber of root directory entries */
+ fs->n_rootdir = LD_WORD(buf+BPB_RootEntCnt-13); /* Number of root directory entries */
tsect = LD_WORD(buf+BPB_TotSec16-13); /* Number of sectors on the file system */
if (!tsect) tsect = LD_DWORD(buf+BPB_TotSec32-13);
mclst = (tsect /* Last cluster# + 1 */
#if _USE_DIR
/*-----------------------------------------------------------------------*/
-/* Create a Directroy Object */
+/* Create a Directory Object */
/*-----------------------------------------------------------------------*/
FRESULT pf_opendir (
/*-----------------------------------------------------------------------*/
-/* Read Directory Entry in Sequense */
+/* Read Directory Entry in Sequence */
/*-----------------------------------------------------------------------*/
FRESULT pf_readdir (