diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-20 23:22:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-20 23:22:56 +0000 |
commit | 4815a2fb0e87d0b64a61f57f287de92be5027e90 (patch) | |
tree | 0c7e51da8deec2627958437c76f329219dfa84f8 /nuttx/fs/fs_fat32.h | |
parent | 87d2e8e9ebb04306b09e647833fac0a4f71acceb (diff) | |
download | px4-nuttx-4815a2fb0e87d0b64a61f57f287de92be5027e90.tar.gz px4-nuttx-4815a2fb0e87d0b64a61f57f287de92be5027e90.tar.bz2 px4-nuttx-4815a2fb0e87d0b64a61f57f287de92be5027e90.zip |
Implemented FAT write
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@244 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_fat32.h')
-rw-r--r-- | nuttx/fs/fs_fat32.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nuttx/fs/fs_fat32.h b/nuttx/fs/fs_fat32.h index 5687b2b16..9e10cd7d8 100644 --- a/nuttx/fs/fs_fat32.h +++ b/nuttx/fs/fs_fat32.h @@ -544,12 +544,16 @@ EXTERN int fat_hwread(struct fat_mountpt_s *fs, ubyte *buffer, EXTERN int fat_hwwrite(struct fat_mountpt_s *fs, ubyte *buffer, size_t sector, unsigned int nsectors); -/* Cluster access helpers */ +/* Cluster / cluster chain access helpers */ EXTERN ssize_t fat_cluster2sector(struct fat_mountpt_s *fs, uint32 cluster ); -EXTERN ssize_t fat_getcluster(struct fat_mountpt_s *fs, unsigned int clusterno); -EXTERN int fat_putcluster(struct fat_mountpt_s *fs, unsigned int clusterno, +EXTERN ssize_t fat_getcluster(struct fat_mountpt_s *fs, uint32 clusterno); +EXTERN int fat_putcluster(struct fat_mountpt_s *fs, uint32 clusterno, size_t startsector); +EXTERN int fat_removechain(struct fat_mountpt_s *fs, uint32 cluster); +EXTERN sint32 fat_extendchain(struct fat_mountpt_s *fs, uint32 cluster); + +#define fat_createchain(fs) fat_extendchain(fs, 0) /* Help for traverseing directory trees */ |