ulibSD/spi_io.[ch]: Add function to write a single byte over SPI.

Additionally, fix the misleading documentation for SPI_RW().
The new function, SPI_WW() follows the same naming logic, for better
or worse.
This commit is contained in:
Ari Sundholm committed 2020-11-05 19:11:04 +02:00
1 parent 124bcc8df8
commit cd77713255
2 files changed
+12 -2

No files matched your search

+4
View File
@@ -23,6 +23,10 @@ void SPI_R(BYTE *rd, int len) {
SPI_read(SD_SPI_BASE, rd, len);
}
void SPI_WW(BYTE d) {
SPI_W(&d, 1);
}
BYTE SPI_RW (BYTE d) {
BYTE w;
SPI_R(&w, 1);