Add some basic code, build kernel stuff in tree

This commit is contained in:
Byron Lathi
2023-12-04 23:06:00 -08:00
parent 902b1b5bb9
commit 2859055f98
6 changed files with 77 additions and 65 deletions

View File

@@ -5,6 +5,12 @@
void fat32_init();
extern uint32_t root_cluster;
extern uint16_t fat_start_sector;
extern uint32_t data_start_sector;
extern uint32_t fat_size;
extern uint8_t* sd_buf;
struct fat32_directory_entry {
char file_name[8];
char file_ext[3];
@@ -31,4 +37,7 @@ struct lfn_entry {
uint16_t name_2[2];
};
uint8_t fat32_get_cluster_by_name(char* name, struct fat32_directory_entry* dentry);
uint8_t fat32_read_cluster(uint32_t cluster, void* buf);
#endif