zephyr/lib/crc/Kconfig
JP Hutchins fe6366b804 lib: crc: add CRC-32K/4.2
This adds the best HD=4 CRC32 polynomial. The discovery
is the result of research by Philip Koopman of Carnegie
Mellon University, and is well documented at
https://users.ece.cmu.edu/~koopman/crc/.

The user is given the option of trading 1024B of RAM to
improve the execution speed. The unit tests are parameterized
with this KConfig option.

Signed-off-by: JP Hutchins <jp@intercreate.io>
2025-04-14 09:49:02 +02:00

24 lines
520 B
Plaintext

# Copyright (c) 2016,2023 Intel Corporation
# Copyright (c) 2024 Intercreate, Inc.
# SPDX-License-Identifier: Apache-2.0
#
config CRC
bool "Cyclic redundancy check (CRC) Support"
help
Enable use of CRC.
if CRC
config CRC_SHELL
bool "CRC Shell"
depends on SHELL
select POSIX_C_LIB_EXT
help
Enable CRC checking for memory regions from the shell.
config CRC32_K_4_2_TABLE_256
bool "Use 256-length table for CRC32-K/4.2"
help
Enable the 256-length instead of 16-length table for CRC32-K/4.2.
endif # CRC