diff options
Diffstat (limited to 'firmware/export/spi.h')
-rw-r--r-- | firmware/export/spi.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/export/spi.h b/firmware/export/spi.h index e6042631d2..93b531b7f3 100644 --- a/firmware/export/spi.h +++ b/firmware/export/spi.h | |||
@@ -20,6 +20,15 @@ | |||
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #ifndef __SPI_H__ | 21 | #ifndef __SPI_H__ |
22 | #define __SPI_H__ | 22 | #define __SPI_H__ |
23 | #include "spi-target.h" | 23 | |
24 | #include <inttypes.h> | ||
25 | #include <stdbool.h> | ||
26 | #include "spi-target.h" /* for SPI_target */ | ||
27 | |||
28 | void spi_init(void); | ||
29 | int spi_block_transfer(enum SPI_target target, | ||
30 | const uint8_t *tx_bytes, unsigned int tx_size, | ||
31 | uint8_t *rx_bytes, unsigned int rx_size); | ||
32 | |||
24 | 33 | ||
25 | #endif | 34 | #endif |