From 546260b09ed7c424362ca8f6d164d4946ba4c6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 22 Mar 2015 14:30:27 +0100 Subject: Add SPI mcu support check --- spi.h | 4 ++++ 1 file changed, 4 insertions(+) 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_ */ -- cgit v1.2.3