summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/arch/lora32u4ii/driver/spi.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/arch/lora32u4ii/driver/spi.h b/include/arch/lora32u4ii/driver/spi.h
new file mode 100644
index 0000000..6377fe9
--- /dev/null
+++ b/include/arch/lora32u4ii/driver/spi.h
@@ -0,0 +1,15 @@
+#pragma once
+
+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;