1 | #ifndef _TWISLAVE_H
|
2 | #define _TWISLAVE_H
|
3 | |
4 | #include "main.h" |
5 | |
6 | void init_twi_slave(); |
7 | |
8 | #if (__GNUC__ * 100 + __GNUC_MINOR__) < 304
|
9 | #error "This library requires AVR-GCC 3.4.5 or later, update to newer AVR-GCC compiler !"
|
10 | #endif
|
11 | |
12 | #if (i2c_buffer_size > 254)
|
13 | #error Buffer zu gross gewaehlt! Maximal 254 Bytes erlaubt.
|
14 | #endif
|
15 | |
16 | #if (i2c_buffer_size < 2)
|
17 | #error Buffer muss mindestens zwei Byte gross sein!
|
18 | #endif
|
19 | |
20 | |
21 | |
22 | #endif
|