From 289f6a146c0b2087607d8d8659531ea90142779a Mon Sep 17 00:00:00 2001 From: Leo C Date: Sun, 27 May 2018 21:26:38 +0200 Subject: Import fatfs R0.13b --- fatfs/documents/doc/chdrive.html | 72 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 fatfs/documents/doc/chdrive.html (limited to 'fatfs/documents/doc/chdrive.html') diff --git a/fatfs/documents/doc/chdrive.html b/fatfs/documents/doc/chdrive.html new file mode 100644 index 0000000..fb1c32f --- /dev/null +++ b/fatfs/documents/doc/chdrive.html @@ -0,0 +1,72 @@ + + +
+ + + + + +The f_chdrive function changes the current drive.
++FRESULT f_chdrive ( + const TCHAR* path /* [IN] Logical drive number */ +); ++
+FR_OK, +FR_INVALID_DRIVE +
+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.
+Available when FF_FS_RPATH >= 1.
++ 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) */ ++