diff options
Diffstat (limited to 'include/u-boot/crc.h')
-rw-r--r-- | include/u-boot/crc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index e98cb46..111b22c 100644 --- a/include/u-boot/crc.h +++ b/include/u-boot/crc.h @@ -11,6 +11,9 @@ /* lib/crc8.c */ unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len); +/* lib/crc16.c - 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */ +uint16_t crc16_ccitt(uint16_t crc_start, const unsigned char *s, int len); + /* lib/crc32.c */ uint32_t crc32 (uint32_t, const unsigned char *, uint); uint32_t crc32_wd (uint32_t, const unsigned char *, uint, uint); |