mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 01:15:38 -04:00
SYNC
This commit is contained in:
parent
29ec87a9ad
commit
44638e504b
166 changed files with 8700 additions and 3967 deletions
|
@ -22,26 +22,26 @@
|
|||
#ifndef __SD_CARD_H__
|
||||
#define __SD_CARD_H__
|
||||
|
||||
#include "ff.h"
|
||||
#include <cstdint>
|
||||
|
||||
#include "signal.hpp"
|
||||
|
||||
namespace sd_card {
|
||||
namespace filesystem {
|
||||
|
||||
namespace {
|
||||
enum class Status : int32_t {
|
||||
IOError = -3,
|
||||
MountError = -2,
|
||||
ConnectError = -1,
|
||||
NotPresent = 0,
|
||||
Present = 1,
|
||||
Mounted = 2,
|
||||
};
|
||||
|
||||
FATFS fs;
|
||||
extern Signal<Status> status_signal;
|
||||
|
||||
}
|
||||
void poll_inserted();
|
||||
Status status();
|
||||
|
||||
FRESULT mount() {
|
||||
return f_mount(&fs, "", 0);
|
||||
}
|
||||
|
||||
FRESULT unmount() {
|
||||
return f_mount(NULL, "", 0);
|
||||
}
|
||||
|
||||
} /* namespace filesystem */
|
||||
} /* namespace sd_card */
|
||||
|
||||
#endif/*__SD_CARD_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue