#ifndef CRC_H #define CRC_H #ifdef __AVR__ #include static inline uint16_t crc16(uint16_t crc, uint8_t data) { return _crc_ccitt_update(crc, data); } #else /* !__AVR__ */ #endif /* __AVR__ */ #endif /* CRC_H */