Byron Lathi
35973473d3
Change spi_write_byte to spi_byte
...
the SPI module reads and writes at the same time. If you don't want to
write a value, then write all zeros or whatever the device you are
communicating with wants.
2022-03-10 12:14:07 -06:00
Byron Lathi
236a75eef8
Update spi.s
...
Use names instead of magic values.
2022-03-10 11:29:32 -06:00
Byron Lathi
ee5271d955
Fix spi bug
...
Was reading a value from x, shifting it, but then not writing it back.
This caused an infinite loop as it would never move on from the MSB.
2022-03-10 11:16:35 -06:00
Byron Lathi
fff193ea0f
Add basic spi code
...
Implements the bit bang spi protocol
2022-03-10 10:26:36 -06:00