diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-09-19 18:42:25 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-09-19 18:42:25 +0200 |
commit | 0288997cc3eea0b252b748f8803171a0a4e986fc (patch) | |
tree | 0d43e68a4ab1d9e51b55c1a416851e29966b5086 /include/arch | |
parent | b35dfb3f83116350eef8681c8e3db72618fdb70e (diff) |
lora32u4ii: add spi driver
Diffstat (limited to 'include/arch')
-rw-r--r-- | include/arch/lora32u4ii/driver/spi.h | 15 |
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 ©); + + 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; |