From b96c7c03ca790f62e4f9409b019290946f622aa7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 12 Apr 2014 00:51:57 +0100 Subject: stmhal: Move fatfs volume/partition lookup table to ROM. --- stmhal/fatfs/src/ff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/fatfs/src/ff.h') diff --git a/stmhal/fatfs/src/ff.h b/stmhal/fatfs/src/ff.h index 73e5533d9..726d899a9 100644 --- a/stmhal/fatfs/src/ff.h +++ b/stmhal/fatfs/src/ff.h @@ -37,7 +37,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 */ -- cgit v1.2.3