1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
6 <link rel=
"up" title=
"FatFs" href=
"../00index_e.html">
7 <link rel=
"stylesheet" href=
"../css_e.css" type=
"text/css" media=
"screen" title=
"ELM Default">
8 <title>FatFs - disk_initialize
</title>
14 <h2>disk_initialize
</h2>
15 <p>The disk_initialize function initializes the disk drive.
</p>
17 DSTATUS disk_initialize (
18 BYTE
<em>Drive
</em> /* Physical drive number */
27 <dd>Specifies the physical drive number to initialize.
</dd>
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>
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>
43 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>