summaryrefslogtreecommitdiff
path: root/lib/SPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SPI.h')
-rw-r--r--lib/SPI.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/SPI.h b/lib/SPI.h
index 6b3264e..a770999 100644
--- a/lib/SPI.h
+++ b/lib/SPI.h
@@ -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