add drive to access an area on emmc/sd as disk

This commit is contained in:
Christoph Baumann
2025-04-27 01:05:09 +02:00
parent 0be3fd4f64
commit 31c8ad0d88
5 changed files with 66 additions and 3 deletions

14
nyx/nyx_gui/storage/sfd.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef _SFD_H
#define _SFD_H
#include <storage/sdmmc.h>
#include <utils/types.h>
int sfd_read(u32 sector, u32 count, void *buff);
int sfd_write(u32 sector, u32 count, void *buff);
bool sfd_init(sdmmc_storage_t *storage, u32 offset, u32 size);
void sfd_end();
#endif