aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-03-22 14:30:27 +0100
committerKarel Kočí <cynerd@email.cz>2015-03-22 14:30:27 +0100
commit546260b09ed7c424362ca8f6d164d4946ba4c6a4 (patch)
tree2cf5c908875f46a03cac17d6b212ecd005092736
parent045e95a7bee443825a3eecdd5f10f16d812be1d6 (diff)
downloadavr-ioe-546260b09ed7c424362ca8f6d164d4946ba4c6a4.tar.gz
avr-ioe-546260b09ed7c424362ca8f6d164d4946ba4c6a4.tar.bz2
avr-ioe-546260b09ed7c424362ca8f6d164d4946ba4c6a4.zip
Add SPI mcu support check
-rw-r--r--spi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/spi.h b/spi.h
index ed6129a..86149f7 100644
--- a/spi.h
+++ b/spi.h
@@ -16,4 +16,8 @@ inline void ioe_spi_expose(int8_t data);
// Following function must be user defined
inline void ioe_spi_retrieve(int8_t);
+#if !(__MCU_ATmega328p__ || __MCU_ATmega32U4p__)
+#error "SPI is not probably supported by your hardware."
+#endif
+
#endif /* _IOE_SPI_H_ */