LF only, more FS fixes

This commit is contained in:
Kilian committed 2026-09-28 17:30:47 +02:00
1 parent 566db4a550
commit a0cabac399
14 files changed
+130 -85

No files matched your search

+9 -8
View File
@@ -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