diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-22 14:30:27 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-22 14:30:27 +0100 |
commit | 546260b09ed7c424362ca8f6d164d4946ba4c6a4 (patch) | |
tree | 2cf5c908875f46a03cac17d6b212ecd005092736 | |
parent | 045e95a7bee443825a3eecdd5f10f16d812be1d6 (diff) | |
download | avr-ioe-546260b09ed7c424362ca8f6d164d4946ba4c6a4.tar.gz avr-ioe-546260b09ed7c424362ca8f6d164d4946ba4c6a4.tar.bz2 avr-ioe-546260b09ed7c424362ca8f6d164d4946ba4c6a4.zip |
Add SPI mcu support check
-rw-r--r-- | spi.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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_ */ |