diff options
Diffstat (limited to 'lib/SPI.h')
-rw-r--r-- | lib/SPI.h | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -23,15 +23,16 @@ #ifndef SPREADAVR_SPI_h_INCLUDED #define SPREADAVR_SPI_h_INCLUDED -#ifdef __cplusplus -extern "C" { -#endif - - // TODO: for now this is just a placeholder to make so we + // TODO: for now this is just a placeholder to make it so we // can compile RadioHead -#ifdef __cplusplus -} -#endif +class SPIClass { // AVR +public: + static void begin(); + static void end(); + static uint8_t transfer(uint8_t data); +}; + +extern SPIClass SPI; #endif |