diff options
Diffstat (limited to 'drivers/avr/spi_master.h')
-rw-r--r-- | drivers/avr/spi_master.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/avr/spi_master.h b/drivers/avr/spi_master.h index 0bab2dc24..b69c1cbd6 100644 --- a/drivers/avr/spi_master.h +++ b/drivers/avr/spi_master.h @@ -41,15 +41,15 @@ extern "C" { #endif void spi_init(void); -void spi_start(pin_t slavePin, bool lsbFirst, uint8_t mode, uint8_t divisor); +bool spi_start(pin_t slavePin, bool lsbFirst, uint8_t mode, uint16_t divisor); -spi_status_t spi_write(uint8_t data, uint16_t timeout); +spi_status_t spi_write(uint8_t data); -spi_status_t spi_read(uint16_t timeout); +spi_status_t spi_read(void); -spi_status_t spi_transmit(const uint8_t *data, uint16_t length, uint16_t timeout); +spi_status_t spi_transmit(const uint8_t *data, uint16_t length); -spi_status_t spi_receive(uint8_t *data, uint16_t length, uint16_t timeout); +spi_status_t spi_receive(uint8_t *data, uint16_t length); void spi_stop(void); #ifdef __cplusplus |