summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-09-19 18:42:25 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-09-19 18:42:25 +0200
commit0288997cc3eea0b252b748f8803171a0a4e986fc (patch)
tree0d43e68a4ab1d9e51b55c1a416851e29966b5086 /include/arch
parentb35dfb3f83116350eef8681c8e3db72618fdb70e (diff)
lora32u4ii: add spi driver
Diffstat (limited to 'include/arch')
-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;