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

+8 -2
View File
@@ -36,12 +36,18 @@ void SPI_R (BYTE *rd, int len);
void SPI_W (BYTE *wd, int len);
/**
\brief Read/Write a single byte.
\param d Byte to send.
\brief Read a single byte.
\param d Byte. Ignored.
\return Byte that arrived.
*/
BYTE SPI_RW (BYTE d);
/**
\brief Write a single byte.
\param d Byte to write.
*/
void SPI_WW(BYTE d);
/**
\brief Flush of SPI buffer.
*/