Michael Hope
a5eb5418d1
crc: add crc16_itu_t which is used in the MMC protocol.
...
This is the MSB first version of crc16_ccitt. Use the same name as in
Linux.
Signed-off-by: Michael Hope <mlhx@google.com>
2018-02-07 16:49:52 -05:00
Michael Hope
f77c1d53b5
crc: add a faster, chainable version of CRC16/CCITT.
...
The existing version of crc16_ccitt() is actually CRC-16/AUG-CCITT and
gives different results to Linux, Contiki, and the CRC unit in the
SAM0 SOC. This version matches Linux.
Note that this is an incompatible API change.
Signed-off-by: Michael Hope <mlhx@google.com>
2018-02-07 16:49:52 -05:00
Michael Hope
88b1ad138e
crc: add test vectors for the ANSI version.
...
The test cases match
http://reveng.sourceforge.net/crc-catalogue/16.htm for
CRC-16/DDS-110.
Signed-off-by: Michael Hope <mlhx@google.com>
2018-02-07 16:49:52 -05:00
Andrzej Puzdrowski
1d59bf1212
tests: unit: lib: crc: Add test for crc8-ccitt implementation
...
CRC test suite was extended by crc8-ccitt test.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-01-15 15:46:37 -05:00
Anas Nashif
6daf046e8f
lib: move crc from drivers to lib/
...
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-12-15 20:02:01 -05:00