From d684c21619905153eff68c43927207248925f6c2 Mon Sep 17 00:00:00 2001 From: Leo C Date: Tue, 12 Aug 2014 12:35:28 +0200 Subject: New U-Boot like AVR main program. Uses U-Boot source code taken from: git://git.denx.de/u-boot.git --- avr/crc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 avr/crc.h (limited to 'avr/crc.h') diff --git a/avr/crc.h b/avr/crc.h new file mode 100644 index 0000000..c38bae4 --- /dev/null +++ b/avr/crc.h @@ -0,0 +1,12 @@ +#ifndef CRC_H +#define CRC_H + +#include + +static inline +uint16_t crc16(uint16_t crc, uint8_t data) +{ + return _crc_ccitt_update(crc, data); +} + +#endif /* CRC_H */ -- cgit v1.2.3