summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5994lp/driver/spi.h
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-08-31 15:24:50 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-08-31 15:24:50 +0200
commitae3acc651a459500bc11ba938607875c6ae21f3a (patch)
tree3a1d74bad3a4f7ebc3b5bb8bf6a021b0c642b092 /include/arch/msp430fr5994lp/driver/spi.h
parentb85efb34524451b47146badfc2fd25bef8d90926 (diff)
msp430fr: rename spi_b to spi to be consistent with other architectures
Diffstat (limited to 'include/arch/msp430fr5994lp/driver/spi.h')
-rw-r--r--include/arch/msp430fr5994lp/driver/spi.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/arch/msp430fr5994lp/driver/spi.h b/include/arch/msp430fr5994lp/driver/spi.h
new file mode 100644
index 0000000..4be7346
--- /dev/null
+++ b/include/arch/msp430fr5994lp/driver/spi.h
@@ -0,0 +1,18 @@
+#ifndef SPI_H
+#define SPI_H
+
+class SPI {
+ private:
+ SPI(const SPI &copy);
+
+ public:
+ SPI () {}
+ void setup();
+ signed char xmit(
+ unsigned char tx_len, unsigned char *tx_buf,
+ unsigned char rx_len, unsigned char *rx_buf);
+};
+
+extern SPI spi;
+
+#endif