Get read working a little bit more. Need to handle edge cases!

This commit is contained in:
Byron Lathi
2023-12-05 23:29:00 -08:00
parent 4c3c3fd731
commit 066bb0ee8c
5 changed files with 21 additions and 14 deletions

View File

@@ -45,8 +45,8 @@ int8_t fat32_read_cluster(uint32_t cluster, void* buf);
uint32_t fat32_next_cluster(uint32_t cluster);
int8_t fat32_file_open(const char* filename);
int8_t fat32_file_read(int8_t fd, void* buf, size_t nbytes);
int8_t fat32_file_write(int8_t fd, const void* buf, size_t nbytes);
size_t fat32_file_read(int8_t fd, void* buf, size_t nbytes);
size_t fat32_file_write(int8_t fd, const void* buf, size_t nbytes);
int8_t fat32_file_close(int8_t fd);
#endif