diff options
Diffstat (limited to 'spi.h')
-rw-r--r-- | spi.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +#include <avr/io.h> +#include <stdint.h> + +#include "mcu/mcu.h" + +#ifndef _IOE_SPI_H_ +#define _IOE_SPI_H_ + +inline void ioe_spi_init(void); +inline int ioe_spi_ready(void); +inline void ioe_spi_join(void); +#ifdef IOE_SPI_MASTER +inline int8_t ioe_spi_transfer(int8_t data); +#else /* IOE_SPI_MASTER */ +inline void ioe_spi_expose(int8_t data); +#endif /* IOE_SPI_MASTER */ + +// Following function must be user defined +inline void ioe_spi_retrieve(int8_t); + +#endif /* _IOE_SPI_H_ */ |