diff options
author | Leo C | 2014-08-12 12:35:28 +0200 |
---|---|---|
committer | Leo C | 2014-08-12 12:35:28 +0200 |
commit | d684c21619905153eff68c43927207248925f6c2 (patch) | |
tree | c4bfb04a20512679103c6ad39fd9885dea6d9e76 /avr/crc.h | |
parent | 9b6b4b31e8cb284ad6a68fe16d458e36bbfb46fa (diff) | |
download | z180-stamp-d684c21619905153eff68c43927207248925f6c2.zip |
New U-Boot like AVR main program.
Uses U-Boot source code taken from:
git://git.denx.de/u-boot.git
Diffstat (limited to 'avr/crc.h')
-rw-r--r-- | avr/crc.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 <util/crc16.h> + +static inline +uint16_t crc16(uint16_t crc, uint8_t data) +{ + return _crc_ccitt_update(crc, data); +} + +#endif /* CRC_H */ |