diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-09 19:44:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-09 19:44:55 +0000 |
commit | 64cbf99d07f2bb6ee67dc64451c7064702904ad0 (patch) | |
tree | 2c74e48b946f9ecbd57b9afd16c0bbbb7dbbba8f /nuttx/include | |
parent | 739c683a81fd750eced6aec2ea30cc1c68701a68 (diff) | |
download | px4-nuttx-64cbf99d07f2bb6ee67dc64451c7064702904ad0.tar.gz px4-nuttx-64cbf99d07f2bb6ee67dc64451c7064702904ad0.tar.bz2 px4-nuttx-64cbf99d07f2bb6ee67dc64451c7064702904ad0.zip |
Added search for good cluster size
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@804 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/mkfatfs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/include/nuttx/mkfatfs.h b/nuttx/include/nuttx/mkfatfs.h index 1a7595f6e..c8e648f0d 100644 --- a/nuttx/include/nuttx/mkfatfs.h +++ b/nuttx/include/nuttx/mkfatfs.h @@ -49,7 +49,7 @@ #define MKFATFS_DEFAULT_BBCHECK FALSE /* FALSE: No bad block check */ #define MKFATFS_DEFAULT_NFATS 2 /* 2: Default number of FATs */ -#define MKFATFS_DEFAULT_FATSIZE 0xff /* 0: Autoselect FAT size */ +#define MKFATFS_DEFAULT_FATTYPE 0xff /* 0: Autoselect FAT size */ #define MKFATFS_DEFAULT_CLUSTSIZE 0 /* 0: Autoselect cluster size */ #define MKFATFS_DEFAULT_VOLUMELABEL { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' } #define MKFATFS_DEFAULT_BKUPBOOT 0 /* 0: Determine sector number of the backup boot sector */ @@ -63,7 +63,7 @@ { \ MKFATFS_DEFAULT_BBCHECK, \ MKFATFS_DEFAULT_NFAT, \ - MKFATFS_DEFAULT_FATSIZE, \ + MKFATFS_DEFAULT_FATTYPE, \ MKFATFS_DEFAULT_CLUSTSIZE, \ MKFATFS_DEFAULT_VOLUMELABEL, \ MKFATFS_DEFAULT_BKUPBOOT, \ @@ -85,7 +85,7 @@ struct fat_format_s { ubyte ff_nfats; /* Number of FATs */ - ubyte ff_fatsize; /* FAT size: 0 (autoselect), 12, 16, or 32 */ + ubyte ff_fattype; /* FAT size: 0 (autoselect), 12, 16, or 32 */ ubyte ff_clustshift; /* Log2 of sectors per cluster: 0-5, 0xff (autoselect) */ ubyte ff_volumelabel[11]; /* Volume label */ uint16 ff_backupboot; /* Sector number of the backup boot sector (0=use default)*/ |