diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-20 12:58:04 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-20 12:58:04 +0100 |
commit | 0f422f5332f8868aee277cc621e2f1633506b1c3 (patch) | |
tree | e32eceadbd74c97bb7e1b48e7f6dd54c7b2bbf24 /include | |
parent | 664c1b6c157cb6f8dc87ea0c7931589306fc10eb (diff) |
add untested Arduino Nano SPI driver
Diffstat (limited to 'include')
-rw-r--r-- | include/arch/arduino-nano/driver/spi.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 |