1234567891011121314151617181920212223 |
- /*
- * Bit-Banged SPI routines
- */
-
- #ifndef _SPI_H
- #define _SPI_H
-
- #include <stdint.h>
-
- #if defined(__AVR__)
- #include "avr/spi.h"
- #else
- #include "arm/spi.h"
- #endif
-
- void spiInit(void);
- uint8_t spiReadWrite(uint8_t command);
-
- #define spiWrite(x) spiReadWrite(x)
- #define spiRead() spiReadWrite(0)
-
- #endif
|