summaryrefslogtreecommitdiff
path: root/include/msp430fr5969lp
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-19 14:38:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-19 14:38:41 +0100
commit044ff708d979cb5c17c1b2e0dafb6be0ccecab43 (patch)
treea0181c22fce6ed14216c43a85519624f007817d9 /include/msp430fr5969lp
parent6493f6eecf82eb9aec5e57e69529dc16d9068bf6 (diff)
add (untested!) MSP430 SPI driver
Diffstat (limited to 'include/msp430fr5969lp')
-rw-r--r--include/msp430fr5969lp/driver/spi.h18
-rw-r--r--include/msp430fr5969lp/driver/spi_b.h18
2 files changed, 36 insertions, 0 deletions
diff --git a/include/msp430fr5969lp/driver/spi.h b/include/msp430fr5969lp/driver/spi.h
new file mode 100644
index 0000000..8c593ee
--- /dev/null
+++ b/include/msp430fr5969lp/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
diff --git a/include/msp430fr5969lp/driver/spi_b.h b/include/msp430fr5969lp/driver/spi_b.h
new file mode 100644
index 0000000..8c593ee
--- /dev/null
+++ b/include/msp430fr5969lp/driver/spi_b.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