aboutsummaryrefslogtreecommitdiff
path: root/later/sd.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-20 23:49:03 -0700
committerChristian Cunningham <cc@localhost>2022-02-20 23:49:03 -0700
commit6c7bdd85bbe8d2b791e0fe52f93f5e75e8beea2d (patch)
treec58ef1f55e58f3104412c94cec8e44ae05e70abc /later/sd.h
parentb608783a17bbc4529e35c846fabad94cea60a014 (diff)
SD Stuff coming soon
Diffstat (limited to 'later/sd.h')
-rw-r--r--later/sd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/later/sd.h b/later/sd.h
new file mode 100644
index 0000000..30d973b
--- /dev/null
+++ b/later/sd.h
@@ -0,0 +1,11 @@
+#ifndef DRIVERS_SD_H
+#define DRIVERS_SD_H
+
+#define SD_OK 0
+#define SD_TIMEOUT (unsigned long)-1
+#define SD_ERROR (unsigned long)-2
+
+int sd_init();
+int sd_readblock(unsigned int lba, unsigned char *buffer, unsigned int num);
+
+#endif