Commit Graph

21 Commits

Author SHA1 Message Date
Byron Lathi
d140928148 Add testing function for reading sd blocks
Add a simple function which reads a 512 block from the SD card and then
prints it to the console.
2022-04-14 11:23:44 -05:00
Byron Lathi
f4e16c0c12 Add software interface for reading SD card data
Adds functions to wait for data to be read, and to read data form the sd
card controller.
2022-04-11 14:03:42 -05:00
Byron Lathi
9eaa6c49f9 Add software support for sd response codes
Polls the sd controller until the read flag is set, at which point it
reads 32 bits of data from the controller.

long response codes (such as CID) are not supported in hw or sw.
2022-04-10 23:18:26 -05:00
Byron Lathi
385efb2511 Read some data off of the sd card
These series of commands are enough to read the first 512b block off of
the sd card. The RCA is hard coded to the sd card that I have on hand,
since response codes are not supported
2022-04-10 19:34:38 -05:00
Byron Lathi
7092cc8f77 Add SD card software interface
Adds a function to send a command to the sd card.
2022-04-10 17:55:51 -05:00
Byron Lathi
0752cc4b8c do a little test to see if memory mapping works
This code creates a shared mapping in high ram, makes sure that that
works, and also makes sure that the memory which is mapped over is left
unchanged.
2022-04-07 12:43:47 -05:00
Byron Lathi
35040860e7 Identity map memory upon reset
Upon reset the mapper is set to identity map and then enabled.
2022-04-07 10:36:50 -05:00
Byron Lathi
5c32fe808e Add board-io, replace sevenseg in sw 2022-03-18 01:27:55 +00:00
Byron Lathi
7619c7c54f new testing program 2022-03-17 15:05:37 -05:00
Byron Lathi
2a1f8df54e Create SDRAM memory region 2022-03-17 13:37:34 -05:00
Byron Lathi
15b91dcc20 Add conio
Also removes print statements from the interrupt handler (except for the
button interrupt)
2022-03-14 22:20:15 -05:00
Byron Lathi
a671fda51c Add sample puts function
"Hello, world!" :)
2022-03-14 10:46:36 -05:00
Byron Lathi
1a9290b97b Implement hex_set_24 2022-03-12 21:55:17 -06:00
Byron Lathi
9bbfce23e2 Add driver for hex digits
This only includes the method to set the pairs of displays individually.
The functions to write a single 16 or 32 bit value have not been
implemented yet, nor has the mask function.
2022-03-12 21:26:19 -06:00
Byron Lathi
5106e50395 Update bootstrap code
Was missing some things like initializing the stack pointer, clearing
BSS, and things like that
2022-03-11 22:57:22 -06:00
Byron Lathi
bf28201832 Add basic hex digit code 2022-03-11 18:25:47 -06:00
Byron Lathi
bac37bab55 Remove non existing import 2022-03-08 15:50:10 -06:00
Byron Lathi
2c26e82a0d Remove io c code 2022-03-08 15:41:03 -06:00
Byron Lathi
6b24abdbd5 Add io helper functions 2022-03-05 22:34:34 -06:00
Byron Lathi
048db615b9 Add basic io header 2022-03-05 21:17:33 -06:00
Byron Lathi
9c29aa4fdf Update linker script to allow c source files 2022-03-05 21:09:46 -06:00