From 7eb50c5f055854c34cba555786c3e9f9eeca01e5 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 20 May 2023 15:51:36 +0200 Subject: [PATCH] sys/ecc: model in Kconfig --- sys/Kconfig | 1 + sys/ecc/Kconfig | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 sys/ecc/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index 6a505b70e9..5482c5d60e 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -74,6 +74,7 @@ choice LOG endchoice rsource "coding/Kconfig" +rsource "ecc/Kconfig" rsource "log_color/Kconfig" rsource "log_printfnoformat/Kconfig" rsource "luid/Kconfig" diff --git a/sys/ecc/Kconfig b/sys/ecc/Kconfig new file mode 100644 index 0000000000..3e257fa863 --- /dev/null +++ b/sys/ecc/Kconfig @@ -0,0 +1,35 @@ +# Copyright (c) 2023 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +menuconfig MODULE_ECC + bool "Error Correction Code (ECC) algorithms" + depends on TEST_KCONFIG + help + Provides Golay1412, Hamming256 and Repetition algorithms. + +if MODULE_ECC + +menu "ECC algorithms" + +config MODULE_ECC_GOLAY1412 + bool "Golay1412 Error Correction Code (ECC) algorithm" + help + Provides Golay1412 ECC algorithm. + +config MODULE_ECC_HAMMING256 + bool "Hamming256 Error Correction Code (ECC) algorithm" + help + Provides Hamming256 ECC algorithm. + +config MODULE_ECC_REPETITION + bool "Repetition Error Correction Code (ECC) algorithm" + help + Provides Repetition ECC algorithm. + +endmenu # ECC algorithms + +endif