From 0f422f5332f8868aee277cc621e2f1633506b1c3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 20 Dec 2019 12:58:04 +0100 Subject: add untested Arduino Nano SPI driver --- include/arch/arduino-nano/driver/spi.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/arch/arduino-nano/driver/spi.h (limited to 'include/arch/arduino-nano') diff --git a/include/arch/arduino-nano/driver/spi.h b/include/arch/arduino-nano/driver/spi.h new file mode 100644 index 0000000..8c593ee --- /dev/null +++ b/include/arch/arduino-nano/driver/spi.h @@ -0,0 +1,18 @@ +#ifndef SPI_H +#define SPI_H + +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; + +#endif -- cgit v1.2.3