From 0288997cc3eea0b252b748f8803171a0a4e986fc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 Sep 2021 18:42:25 +0200 Subject: lora32u4ii: add spi driver --- include/arch/lora32u4ii/driver/spi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/arch/lora32u4ii/driver/spi.h (limited to 'include/arch') 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; -- cgit v1.2.3