diff options
author | Leo C | 2014-08-23 19:34:22 +0200 |
---|---|---|
committer | Leo C | 2014-08-23 19:34:22 +0200 |
commit | 61b0cfe9df810db4fbca78e5f880d61c5063f324 (patch) | |
tree | ec9b73a87afa5fdd90acc3c7309104399db104b7 /include/crc.h | |
parent | 21a24f90c5aaaaf13f91716208b32cde163c5918 (diff) | |
download | z180-stamp-61b0cfe9df810db4fbca78e5f880d61c5063f324.zip |
Add date rtc i2c
Diffstat (limited to 'include/crc.h')
-rw-r--r-- | include/crc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/crc.h b/include/crc.h index c38bae4..927b5ff 100644 --- a/include/crc.h +++ b/include/crc.h @@ -1,12 +1,14 @@ #ifndef CRC_H #define CRC_H +#ifdef __AVR__ #include <util/crc16.h> - static inline uint16_t crc16(uint16_t crc, uint8_t data) { return _crc_ccitt_update(crc, data); } +#else /* !__AVR__ */ +#endif /* __AVR__ */ #endif /* CRC_H */ |