diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-22 14:28:01 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-22 14:28:01 +0100 |
commit | 045e95a7bee443825a3eecdd5f10f16d812be1d6 (patch) | |
tree | 08e8a395ce85a55490bb7bdf8e48357143c074e9 /spi_usi.h | |
parent | 710c457afeb7b8132000071468b147ab8c3f8612 (diff) | |
download | avr-ioe-045e95a7bee443825a3eecdd5f10f16d812be1d6.tar.gz avr-ioe-045e95a7bee443825a3eecdd5f10f16d812be1d6.tar.bz2 avr-ioe-045e95a7bee443825a3eecdd5f10f16d812be1d6.zip |
Add SPI USI mcu support check
Diffstat (limited to 'spi_usi.h')
-rw-r--r-- | spi_usi.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,6 +3,8 @@ #include <avr/interrupt.h> #include <inttypes.h> +#include "mcu/mcu.h" + #ifndef _IOE_SPI_USI_H_ #define _IOE_SPI_USI_H_ @@ -35,14 +37,17 @@ inline uint8_t ioe_spi_usi_busy(void); */ inline void ioe_spi_usi_join(void); -// Following function must be user defined /* * This function must be defined by user. * This function is called every time transfer is finished. * And until return from this function interrupts are disabled. + * WARNING: Please define this function in your code. */ inline void ioe_spi_usi_retrieve(int8_t data); #endif /* IOE_SPI_USI_MASTER */ +#if !(__MCU_ATtiny4313__ || __MCU_ATtiny85__) +#error "USI is not probably supported by your MCU." +#endif #endif /* _IOE_SPI_USI_H_ */ |