Added filesystem module, tests and implementation for it in emulator.

This commit is contained in:
t-moe
2015-05-10 01:17:58 +02:00
parent c652b6bd05
commit e2bce8f163
15 changed files with 498 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
#include "filesystem.h"
bool ll_filesystem_init();
DIRECTORY_STRUCT* ll_filesystem_dir_open(const char* path);
void ll_filesystem_dir_close(DIRECTORY_STRUCT* dir);
FILE_HANDLE* ll_filesystem_file_open(const char* filename);
void ll_filesystem_file_close(FILE_HANDLE* handle);
FILE_STATUS ll_filesystem_file_seek(FILE_HANDLE* handle, uint32_t offset);
FILE_STATUS ll_filesystem_file_read(FILE_HANDLE* handle, uint8_t* buf, uint32_t size);
FILE_STATUS ll_filesystem_file_write(FILE_HANDLE* handle, uint8_t* buf, uint32_t size);