diff options
Diffstat (limited to 'later/sd.h')
-rw-r--r-- | later/sd.h | 11 |
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 |