summaryrefslogtreecommitdiffstats
path: root/quantum/crc.c
Commit message (Collapse)AuthorAgeFilesLines
* Add CRC8 calculation subsystem to quantum (#12641)Stefan Kerkmann2021-06-181-0/+59
* 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.