Skip to content

Commit c88fed2

Browse files
ejaquayejaquay
authored andcommitted
add sdc.h header file
1 parent 14d553b commit c88fed2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

sdc/sdc.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Uncomment to get console logging
2+
#define USE_LOGGING
3+
4+
#include "../defines.h"
5+
#include "../logger.h"
6+
7+
#include "resource.h"
8+
#include "cloud9.h"
9+
10+
// Return values for status register
11+
#define STA_BUSY 0x01
12+
#define STA_READY 0x02
13+
#define STA_HWERROR 0x04
14+
#define STA_CRCERROR 0x08
15+
#define STA_NOTFOUND 0x10
16+
#define STA_DELETED 0x20
17+
#define STA_WPROTECT 0x40
18+
#define STA_FAIL 0x80
19+
20+
// Single byte file attributes for File info records
21+
#define ATTR_NORM 0x00
22+
#define ATTR_RDONLY 0x01
23+
#define ATTR_HIDDEN 0x02
24+
#define ATTR_SDF 0x04
25+
#define ATTR_DIR 0x10
26+
#define ATTR_INVALID -1 //not 0xFF because byte is signed
27+

0 commit comments

Comments
 (0)