Commit Graph

21 Commits

Author SHA1 Message Date
Byron Lathi
aca739338a Remove spi_word and replace with spi_deselect
Since the goal is to have the MAX3421E working, which uses multiple 8
bit transfers, we should support multiple 8 bit transfers instead of
trying to use 16 bit transfers.

When using spi_byte(), the device is automatically selected. After you
have made as many transfers as you want, you must deselect the device
with spi_deselect().
2022-03-10 14:43:49 -06:00
Byron Lathi
fe3851875d Add spi_word() 2022-03-10 13:38:39 -06:00
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
6f3155cf35 Add sim65 tests 2022-03-10 11:06:48 -06:00
Byron Lathi
eed7c21971 Update Makefile
Change lists to not have trailing slash

Remove listing folder during clean
2022-03-10 10:29:34 -06:00
Byron Lathi
fff193ea0f Add basic spi code
Implements the bit bang spi protocol
2022-03-10 10:26:36 -06:00
Byron Lathi
80d49b4f87 Update makefile
Generates listing files and a map file now.
2022-03-10 10:25:36 -06:00
Byron Lathi
3f5a653326 Rename assembly files from .S to .s 2022-03-10 10:17:37 -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
f1f1a90eeb Change IO_REMAP location 2022-03-05 23:23:05 -06:00
Byron Lathi
e9104e4233 Add explicit assembly targets 2022-03-05 22:34:54 -06:00
Byron Lathi
6b24abdbd5 Add io helper functions 2022-03-05 22:34:34 -06:00
Byron Lathi
859a954996 Add STARTUP info 2022-03-05 21:26:09 -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
Byron Lathi
37e122197f Refactor CI into one file
Remove the downstream stuff and consolidate the hw and sw pipelines into
one.
2022-03-05 19:22:00 -06:00
Byron Lathi
dbf990df3b Add ci 2022-03-05 18:57:19 -06:00
Byron Lathi
a2fdcc5553 Add software files 2022-03-05 18:48:19 -06:00