diff options
Diffstat (limited to 'os/io/spi.h')
-rw-r--r-- | os/io/spi.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os/io/spi.h b/os/io/spi.h index 54409fe76..816e9f6d4 100644 --- a/os/io/spi.h +++ b/os/io/spi.h @@ -48,7 +48,9 @@ extern "C" { void spiSetup(SPIDriver *spip, const SPIConfig *config);
void spiSelect(SPIDriver *spip);
void spiUnselect(SPIDriver *spip);
- void spiExchange(SPIDriver *spip, size_t n, void *rxbuf, void *txbuf);
+ msg_t spiExchange(SPIDriver *spip, size_t n, void *rxbuf, void *txbuf);
+ msg_t spiSend(SPIDriver *spip, size_t n, void *txbuf);
+ msg_t spiReceive(SPIDriver *spip, size_t n, void *rxbuf);
#if SPI_USE_MUTUAL_EXCLUSION
void spiAcquireBus(SPIDriver *spip);
void spiReleaseBus(SPIDriver *spip);
|