summaryrefslogtreecommitdiff
path: root/firmware/export/sd.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/sd.h')
-rw-r--r--firmware/export/sd.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/firmware/export/sd.h b/firmware/export/sd.h
index 11923fdc92..c3949af466 100644
--- a/firmware/export/sd.h
+++ b/firmware/export/sd.h
@@ -48,4 +48,44 @@ bool sd_present(IF_MV_NONVOID(int drive));
48 48
49long sd_last_disk_activity(void); 49long sd_last_disk_activity(void);
50 50
51/* SD States */
52#define IDLE 0
53#define READY 1
54#define IDENT 2
55#define STBY 3
56#define TRAN 4
57#define DATA 5
58#define RCV 6
59#define PRG 7
60#define DIS 8
61
62/* SD Commands */
63#define GO_IDLE_STATE 0
64#define ALL_SEND_CID 2
65#define SEND_RELATIVE_ADDR 3
66#define SET_DSR 4
67#define SWITCH_FUNC 6
68#define SELECT_CARD 7
69#define DESELECT_CARD 7
70#define SEND_IF_COND 8
71#define SEND_CSD 9
72#define SEND_CID 10
73#define STOP_TRANSMISSION 12
74#define SEND_STATUS 13
75#define GO_INACTIVE_STATE 15
76#define SET_BLOCKLEN 16
77#define READ_SINGLE_BLOCK 17
78#define READ_MULTIPLE_BLOCK 18
79#define SEND_NUM_WR_BLOCKS 22
80#define WRITE_BLOCK 24
81#define WRITE_MULTIPLE_BLOCK 25
82#define ERASE_WR_BLK_START 32
83#define ERASE_WR_BLK_END 33
84#define ERASE 38
85#define APP_CMD 55
86
87/* Application Specific commands */
88#define SET_BUS_WIDTH 6
89#define SD_APP_OP_COND 41
90
51#endif 91#endif