SD card: measures sizes and additionally enable FAT32 support.
FAT12 was not choosen, because it's virtually no longer in use (allows volume sizes up to 32 MB, only) and would increase binary size by another 248 bytes. Measured sizes are in a comment in pff_conf.h, where one can also enable or disable support for these variants.
This commit is contained in:
parent
23be2d1449
commit
cb1b9b3feb
12
pff_conf.h
12
pff_conf.h
|
|
@ -15,9 +15,19 @@
|
||||||
#define _USE_LSEEK 0 /* Enable pf_lseek() function */
|
#define _USE_LSEEK 0 /* Enable pf_lseek() function */
|
||||||
#define _USE_WRITE 0 /* Enable pf_write() function */
|
#define _USE_WRITE 0 /* Enable pf_write() function */
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------/
|
||||||
|
/ File system support.
|
||||||
|
/
|
||||||
|
/ Firmware binary sizes with read-only on AVR ATmega are are as following:
|
||||||
|
/
|
||||||
|
/ only plus FAT12 plus FAT16 plus FAT32 plus both
|
||||||
|
/ FAT12 (21810) - - - + 98 + 546 + 660
|
||||||
|
/ FAT16 (21718) + 190 - - - + 504 + 752
|
||||||
|
/ FAT32 (21996) + 360 + 226 - - - + 474
|
||||||
|
/---------------------------------------------------------------------------*/
|
||||||
#define _FS_FAT12 0 /* Enable FAT12 */
|
#define _FS_FAT12 0 /* Enable FAT12 */
|
||||||
#define _FS_FAT16 1 /* Enable FAT16 */
|
#define _FS_FAT16 1 /* Enable FAT16 */
|
||||||
#define _FS_FAT32 0 /* Enable FAT32 */
|
#define _FS_FAT32 1 /* Enable FAT32 */
|
||||||
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------/
|
/*---------------------------------------------------------------------------/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue