Add SD card software interface

Adds a function to send a command to the sd card.
This commit is contained in:
Byron Lathi
2022-04-10 17:55:51 -05:00
parent cd11670fb1
commit 7092cc8f77
4 changed files with 42 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
#include "board_io.h"
#include "uart.h"
#include "mapper.h"
#include "sd_card.h"
int main() {
int i;
@@ -46,6 +47,9 @@ int main() {
cprintf("Reading from 0x4000: %x\n", *(unsigned int*)(0x4000));
cprintf("Reading from 0x5000: %x\n", *(unsigned int*)(0x5000));
sd_card_command(0, 0);
sd_card_command(0x000001aa, 8);
while (1) {
sw = sw_read();