From cb1b9b3feb18a35c3952ada61b900c13bc0f9cb9 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Tue, 7 Jul 2015 15:02:42 +0200 Subject: [PATCH] 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. --- pff_conf.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pff_conf.h b/pff_conf.h index 59ec26b..5e5c834 100644 --- a/pff_conf.h +++ b/pff_conf.h @@ -15,9 +15,19 @@ #define _USE_LSEEK 0 /* Enable pf_lseek() 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_FAT16 1 /* Enable FAT16 */ -#define _FS_FAT32 0 /* Enable FAT32 */ +#define _FS_FAT32 1 /* Enable FAT32 */ /*---------------------------------------------------------------------------/