summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/fat.c5
-rw-r--r--firmware/export/fat.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 3e43e1c787..0c8997d94a 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1989,3 +1989,8 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
1989 } 1989 }
1990 return 0; 1990 return 0;
1991} 1991}
1992
1993int fat_get_cluster_size(void)
1994{
1995 return fat_bpb.bpb_secperclus * SECTOR_SIZE;
1996}
diff --git a/firmware/export/fat.h b/firmware/export/fat.h
index dbc0ab20cc..db8737cfd3 100644
--- a/firmware/export/fat.h
+++ b/firmware/export/fat.h
@@ -94,5 +94,6 @@ extern int fat_rename(struct fat_file* file,
94 94
95extern int fat_opendir(struct fat_dir *ent, unsigned int currdir); 95extern int fat_opendir(struct fat_dir *ent, unsigned int currdir);
96extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); 96extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry);
97extern int fat_get_cluster_size(void);
97 98
98#endif 99#endif