commit | bbafc36b1cca944f738e44d5efa3d2a41b7f43a6 | [log] [tgz] |
---|---|---|
author | Michael Hope <mlhx@google.com> | Sun Feb 11 18:07:39 2018 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Sun Dec 30 16:24:10 2018 -0500 |
tree | 820385d24400bf155449ce22a2f49f2e365ae08d | |
parent | ef9361fca08e09efb10656b9f23220db77d0e5d9 [diff] |
lib: add crc7. Used as a checksum on command messages when talking with MMC cards. Implemented using the unwound bytewise implementation from https://en.wikipedia.org/wiki/Computation_of_cyclic_redundancy_checks which is a good mix of size and speed. The API and naming matches lib/crc7.c in Linux. Signed-off-by: Michael Hope <mlhx@google.com>