LF only, more FS fixes
This commit is contained in:
1 parent
566db4a550
commit
a0cabac399
14 files changed
+130
-85
No files matched your search
+9
-8
@@ -1,21 +1,22 @@
|
||||
#ifndef FILE_H
|
||||
#define FILE_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define STATUS_ERROR 1
|
||||
#define STATUS_EOF 2
|
||||
#define STATUS_READY 4
|
||||
|
||||
#define COMMAND_OPEN 1
|
||||
#define COMMAND_CLOSE 2
|
||||
#define COMMAND_SELECT_IN 3
|
||||
#define COMMAND_SELECT_OUT 4
|
||||
#define COMMAND_OPEN_R 1
|
||||
#define COMMAND_OPEN_W 2
|
||||
#define COMMAND_OPEN_A 3
|
||||
#define COMMAND_CLOSE 4
|
||||
#define COMMAND_READ 5
|
||||
#define COMMAND_WRITE 6
|
||||
#define COMMAND_RESET 7
|
||||
|
||||
int openFile(int fd, const char *path);
|
||||
int openFile(int fd, const char *path, const char *mode);
|
||||
int closeFile(int fd);
|
||||
int readByte(const int fd, int *data);
|
||||
int writeByte(const int fd, const int data);
|
||||
int readByte(const int fd, uint8_t *data);
|
||||
int writeByte(const int fd, const uint8_t data);
|
||||
|
||||
#endif // FILE_H
|
||||
Reference in new issue
Block a user