R0.15a
Nov 22, 2024 Fixed a complie error when FF_FS_LOCK != 0. (appeared at R0.15) Fixed a potential issue when work FatFs concurrency with FF_FS_REENTRANT, FF_VOLUMES >= 2 and FF_FS_LOCK > 0. Made f_setlabel accept a volume label with Unix style volume ID when FF_STR_VOLUME_ID == 2. Made FatFs update PercInUse field in exFAT VBR. (A preceding f_getfree is needed for the accuracy)
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<link rel="up" title="FatFs" href="../00index_e.html">
|
||||
<link rel="alternate" hreflang="ja" title="Japanese" href="../ja/mount.html">
|
||||
<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
|
||||
<title>FatFs - f_mount</title>
|
||||
</head>
|
||||
@@ -92,19 +90,19 @@ int main (void)
|
||||
FATFS *fs; <span class="c">/* Ponter to the filesystem object */</span>
|
||||
|
||||
|
||||
fs = malloc(sizeof (FATFS)); <span class="c">/* Get work area for the volume */</span>
|
||||
<em>f_mount</em>(fs, "", 0); <span class="c">/* Mount the default drive */</span>
|
||||
fs = malloc(sizeof (FATFS)); <span class="c">/* Get work area for the volume */</span>
|
||||
<em>f_mount</em>(fs, "", 0); <span class="c">/* Mount the default drive */</span>
|
||||
|
||||
f_open(... <span class="c">/* Here any file API can be used */</span>
|
||||
f_open(... <span class="c">/* Here any file API can be used */</span>
|
||||
|
||||
...
|
||||
|
||||
<em>f_mount</em>(fs, "", 0); <span class="c">/* Re-mount the default drive to reinitialize the filesystem */</span>
|
||||
<em>f_mount</em>(fs, "", 0); <span class="c">/* Re-mount the default drive to reinitialize the filesystem */</span>
|
||||
|
||||
...
|
||||
|
||||
<em>f_mount</em>(0, "", 0); <span class="c">/* Unmount the default drive */</span>
|
||||
free(fs); <span class="c">/* Here the work area can be discarded */</span>
|
||||
<em>f_unmount</em>(""); <span class="c">/* Unmount the default drive */</span>
|
||||
free(fs); <span class="c">/* Here the work area can be discarded */</span>
|
||||
|
||||
...
|
||||
}
|
||||
@@ -117,6 +115,7 @@ int main (void)
|
||||
<p><tt><a href="open.html">f_open</a></tt>, <tt><a href="sfatfs.html">FATFS</a></tt></p>
|
||||
</div>
|
||||
|
||||
|
||||
<p class="foot"><a href="../00index_e.html">Return</a></p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user