X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/61b0cfe9df810db4fbca78e5f880d61c5063f324..35edb766593d019b89a3f40b6d6cdd2b50f18032:/include/crc.h diff --git a/include/crc.h b/include/crc.h index 927b5ff..89cde1f 100644 --- a/include/crc.h +++ b/include/crc.h @@ -1,14 +1,21 @@ +/* + * (C) Copyright 2014 Leo C. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + #ifndef CRC_H #define CRC_H #ifdef __AVR__ #include static inline -uint16_t crc16(uint16_t crc, uint8_t data) +uint16_t crc16(uint16_t crc, uint8_t data) { return _crc_ccitt_update(crc, data); } #else /* !__AVR__ */ + /* TODO */ #endif /* __AVR__ */ #endif /* CRC_H */