summaryrefslogtreecommitdiffstatshomepage
path: root/lib/fatfs/ff.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-20 21:12:34 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-27 17:36:16 +0000
commit6b755d827ac96fab8649f35b0e3508a28106c532 (patch)
tree1a4a40645b344e49461f9467d5f6a0d70fd0f168 /lib/fatfs/ff.h
parentc546b66bab04426a423af21eabb84de5707b29c4 (diff)
downloadmicropython-6b755d827ac96fab8649f35b0e3508a28106c532.tar.gz
micropython-6b755d827ac96fab8649f35b0e3508a28106c532.zip
lib/fatfs: Support our volume names; make some funcs static.
Diffstat (limited to 'lib/fatfs/ff.h')
-rw-r--r--lib/fatfs/ff.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/fatfs/ff.h b/lib/fatfs/ff.h
index 5eaad5fef6..6f7c86debf 100644
--- a/lib/fatfs/ff.h
+++ b/lib/fatfs/ff.h
@@ -36,7 +36,7 @@ typedef struct {
BYTE pd; /* Physical drive number */
BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
} PARTITION;
-extern PARTITION VolToPart[]; /* Volume - Partition resolution table */
+extern const PARTITION VolToPart[]; /* Volume - Partition resolution table */
#define LD2PD(vol) (VolToPart[vol].pd) /* Get physical drive number */
#define LD2PT(vol) (VolToPart[vol].pt) /* Get partition index */
@@ -273,8 +273,16 @@ void ff_rel_grant (_SYNC_t sobj); /* Unlock sync object */
int ff_del_syncobj (_SYNC_t sobj); /* Delete a sync object */
#endif
+// dpgeorge: added the following 3 declarations to support our volume names
+// Current drive
+extern BYTE ff_CurrVol;
+// Returns logical drive number (-1:invalid drive)
+int ff_get_ldnumber(const TCHAR** path);
+
+// Store the volume name into dest, and advance the pointer
+void ff_get_volname(BYTE vol, TCHAR **dest);
/*--------------------------------------------------------------*/
/* Flags and offset address */