<p>The disk_initialize function initializes the disk drive.</p>
16
<pre>
17
DSTATUS disk_initialize (
18
BYTE <em>Drive</em> /* Physical drive number */
19
);
20
</pre>
21
</div>
22
23
<div class="para">
24
<h4>Parameter</h4>
25
<dl class="par">
26
<dt>Drive</dt>
27
<dd>Specifies the physical drive number to initialize.</dd>
28
</dl>
29
</div>
30
31
32
<div class="para">
33
<h4>Return Values</h4>
34
<p>This function returns a disk status as the result. For details of the disk status, refer to the <a href="dstat.html">disk_status</a> function.</p>
35
</div>
36
37
<div class="para">
38
<h4>Description</h4>
39
<p>The disk_initialize function initializes a physical drive. When the function succeeded, <tt>STA_NOINIT</tt> flag in the return value is cleard.</p>
40
<p>This function is called from volume mount process in the FatFs module to manage the media change. <em>Application program must not call this function while FatFs module is active, or FAT structure on the volume can be collapted. To re-initialize the file system, use f_mount function.</em></p>