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.
This commit is contained in:
Byron Lathi
2022-03-10 12:14:07 -06:00
parent 236a75eef8
commit 35973473d3
3 changed files with 38 additions and 8 deletions

View File

@@ -3,6 +3,6 @@
#include <stdint.h>
void spi_write_byte(uint8_t);
uint8_t spi_byte(uint8_t);
#endif