X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/b4e3fab85fcd9f5b1502ec991c81302b910492d3:/fatfs/doc/en/chdrive.html..0f3b947bda5f34662a611272b9f12199e0da9aca:/fatfs/documents/doc/chdrive.html diff --git a/fatfs/doc/en/chdrive.html b/fatfs/documents/doc/chdrive.html similarity index 60% rename from fatfs/doc/en/chdrive.html rename to fatfs/documents/doc/chdrive.html index 7950994..fb1c32f 100644 --- a/fatfs/doc/en/chdrive.html +++ b/fatfs/documents/doc/chdrive.html @@ -1,7 +1,7 @@ - + @@ -41,12 +41,24 @@ FRESULT f_chdrive (

Description

-

The f_chdrive 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.

+

The f_chdrive 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.

QuickInfo

-

Available when _FS_RPATH >= 1 and _VOLUMES >= 2.

+

Available when FF_FS_RPATH >= 1.

+
+ + +
+

Example

+
+    f_chdrive("2:");  /* Set drive 2 as current drive */
+
+    f_chdrive("");    /* No effect (set current drive as current drive) */
+
+    f_chdrive("/flash");  /* Set drive "flash" as current drive (at Unix style volume ID) */
+