Anas Nashif
b8424b4cae
crc: deprecate old headers and issue warning when used
...
Change code to use crc.h instead crc{8,16,32}.h and issue warning when
old headers are used.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-12-04 08:52:46 -06:00
Alexander Polleti
aec8971bfd
crc8: fix const correctness
...
Declares the array with constant data const.
Tested with tests/unit/lib/crc.
Signed-off-by: Alexander Polleti <metapsychologe@yahoo.de>
2018-10-04 16:37:21 -05:00
Michael Hope
dc37f985e9
crc: make crc8_ccitt() match the other CRC functions.
...
This is a minor change that makes the data pointer const and shifts
the length to a size_t to match the other CRC functions.
Signed-off-by: Michael Hope <mlhx@google.com>
2018-03-10 21:49:07 -05:00
Andrzej Puzdrowski
9a5a3e06f0
lib: crc: Add crc8-ccitt implementation
...
This patch adds crc8-ccitt calculation routine.
CRC8 CCITT is required for Flash Circular Buffer
module (originally mynewt module).
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-01-15 15:46:37 -05:00