lib: crc: Add CRC4

Add two new functions: crc4 for generic calculations
of CRC4, and crc4_ti which use look-up table for
faster calculations of CRC4 algortihms that base
on 0x03 polynomial.

Signed-off-by: Michal Morsisko <morsisko@gmail.com>
This commit is contained in:
Michal Morsisko 2023-08-09 21:14:16 +02:00 committed by Carles Cufí
commit 39aa2ad719
3 changed files with 95 additions and 0 deletions

View file

@ -6,5 +6,6 @@ zephyr_sources_ifdef(CONFIG_CRC
crc16_sw.c
crc8_sw.c
crc7_sw.c
crc4_sw.c
)
zephyr_sources_ifdef(CONFIG_CRC_SHELL crc_shell.c)