aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/spi.h')
-rw-r--r--libmaple/spi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmaple/spi.h b/libmaple/spi.h
index cde3b42..25c2c6b 100644
--- a/libmaple/spi.h
+++ b/libmaple/spi.h
@@ -96,7 +96,8 @@ void spi_init(uint32 spi_num,
uint32 prescale,
uint32 endian,
uint32 mode);
-void spi_tx(uint32 spi_num, uint8 data);
+uint8 spi_tx_byte(uint32 spi_num, uint8 data);
+uint8 spi_tx(uint32 spi_num, uint8 *buf, uint32 len);
static inline uint8 spi_rx(uint32 spi_num) {
SPI *spi;