summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-12-20 12:58:04 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-12-20 12:58:04 +0100
commit0f422f5332f8868aee277cc621e2f1633506b1c3 (patch)
treee32eceadbd74c97bb7e1b48e7f6dd54c7b2bbf24 /include
parent664c1b6c157cb6f8dc87ea0c7931589306fc10eb (diff)
add untested Arduino Nano SPI driver
Diffstat (limited to 'include')
-rw-r--r--include/arch/arduino-nano/driver/spi.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/arch/arduino-nano/driver/spi.h b/include/arch/arduino-nano/driver/spi.h
new file mode 100644
index 0000000..8c593ee
--- /dev/null
+++ b/include/arch/arduino-nano/driver/spi.h
@@ -0,0 +1,18 @@
+#ifndef SPI_H
+#define SPI_H
+
+class SPI {
+ private:
+ SPI(const SPI &copy);
+
+ public:
+ SPI () {}
+ signed char setup();
+ signed char xmit(
+ unsigned char tx_len, unsigned char *tx_buf,
+ unsigned char rx_len, unsigned char *rx_buf);
+};
+
+extern SPI spi;
+
+#endif