successfully call f_mkfs(). it's a start I guess.

This commit is contained in:
Arisotura
2021-09-12 04:32:12 +02:00
parent b841f24996
commit 529620a49e
7 changed files with 157 additions and 7 deletions

View File

@ -19,8 +19,28 @@
#ifndef FATSTORAGE_H
#define FATSTORAGE_H
#include "types.h"
#include <stdio.h>
//
#include "types.h"
#include "fatfs/ff.h"
class FATStorage
{
public:
FATStorage();
~FATStorage();
private:
FILE* file;
u64 filesize;
static FILE* FF_File;
static u64 FF_FileSize;
static UINT FF_ReadStorage(BYTE* buf, LBA_t sector, UINT num);
static UINT FF_WriteStorage(BYTE* buf, LBA_t sector, UINT num);
bool Build(const char* sourcedir, u64 size, const char* filename);
};
#endif // FATSTORAGE_H