From c47bd3d402ffc1b91d695938d77a96bde3ce6176 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 4 Mar 2022 09:35:50 +0100 Subject: [PATCH] sys/chunked_ringbuffer: model in Kconfig --- sys/Kconfig | 1 + sys/chunked_ringbuffer/Kconfig | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 sys/chunked_ringbuffer/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index 97248ec4f4..7350bbbb8e 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -16,6 +16,7 @@ rsource "bitfield/Kconfig" rsource "bloom/Kconfig" rsource "cb_mux/Kconfig" rsource "checksum/Kconfig" +rsource "chunked_ringbuffer/Kconfig" rsource "color/Kconfig" rsource "crypto/Kconfig" rsource "congure/Kconfig" diff --git a/sys/chunked_ringbuffer/Kconfig b/sys/chunked_ringbuffer/Kconfig new file mode 100644 index 0000000000..4bf5541e1a --- /dev/null +++ b/sys/chunked_ringbuffer/Kconfig @@ -0,0 +1,17 @@ +# Copyright (c) 2022 HAW Hamburg +# +# 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_CHUNKED_RINGBUFFER + bool "Chunked ringbuffer" + depends on TEST_KCONFIG + help + A ringbuffer to store chunks of data. + +config CHUNK_NUM_MAX + int "Maximum number of chunks to store" + depends on MODULE_CHUNKED_RINGBUFFER + default 4