]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/documents/doc/chdrive.html
Import fatfs R0.13b
[z180-stamp.git] / fatfs / documents / doc / chdrive.html
similarity index 60%
rename from fatfs/doc/en/chdrive.html
rename to fatfs/documents/doc/chdrive.html
index 79509944ac9bf0e827b07f2586c8ddcf6f0b7859..fb1c32fa9bdb7b8fc435000fef830bbfdff8134c 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
 <html lang="en">\r
 <head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
 <meta http-equiv="Content-Style-Type" content="text/css">\r
 <link rel="up" title="FatFs" href="../00index_e.html">\r
 <link rel="alternate" hreflang="ja" title="Japanese" href="../ja/chdrive.html">\r
@@ -41,12 +41,24 @@ FRESULT f_chdrive (
 \r
 <div class="para desc">\r
 <h4>Description</h4>\r
-<p>The <tt>f_chdrive</tt> function changes the current drive. The initial value of the current drive number is 0. Note that the current drive is retained in a static variable so that it also affects other tasks that using the file functions.</p>\r
+<p>The <tt>f_chdrive</tt> function changes only the current drive. The initial value of the current drive number is 0. Note that the current drive is retained in a static variable, so that it also affects other tasks that using the file functions.</p>\r
 </div>\r
 \r
 <div class="para comp">\r
 <h4>QuickInfo</h4>\r
-<p>Available when <tt>_FS_RPATH >= 1</tt> and <tt>_VOLUMES >= 2</tt>.</p>\r
+<p>Available when <tt><a href="config.html#fs_rpath">FF_FS_RPATH</a> &gt;= 1</tt>.</p>\r
+</div>\r
+\r
+\r
+<div class="para use">\r
+<h4>Example</h4>\r
+<pre>\r
+    <em>f_chdrive</em>("2:");  <span class="c">/* Set drive 2 as current drive */</span>\r
+\r
+    <em>f_chdrive</em>("");    <span class="c">/* No effect (set current drive as current drive) */</span>\r
+\r
+    <em>f_chdrive</em>("/flash");  <span class="c">/* Set drive "flash" as current drive (at Unix style volume ID) */</span>\r
+</pre>\r
 </div>\r
 \r
 \r