summaryrefslogtreecommitdiff
path: root/quantum/crc.h
AgeCommit message (Collapse)Author
2021-06-18Add CRC8 calculation subsystem to quantum (#12641)Stefan Kerkmann
* Intended usage is data validation in split transport code. * Default space efficient algorithm. * Opt-in fast table based algorithmn with #define CRC8_USE_TABLE switch. * Define switches for size and speed optimized versions, the default is size optimized by using uint_least8_t as datatype for calculations. * #define CRC8_OPTIMIZE_SPEED uses uint_fast8_t as datatype for calculations, this only affects 32-bit Archs like ARM and RISC-V. * Placeholder crc_init() function for hardware backed crc calculation, not implemented yet.