diff --git a/pkg/Kconfig b/pkg/Kconfig index 52fcc9a86c..81ff5332af 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -23,6 +23,7 @@ rsource "libcose/Kconfig" rsource "libfixmath/Kconfig" rsource "libhydrogen/Kconfig" rsource "lora-serialization/Kconfig" +rsource "lvgl/Kconfig" rsource "micro-ecc/Kconfig" rsource "microcoap/Kconfig" rsource "minmea/Kconfig" diff --git a/pkg/lvgl/Kconfig b/pkg/lvgl/Kconfig new file mode 100644 index 0000000000..5dcfd0f353 --- /dev/null +++ b/pkg/lvgl/Kconfig @@ -0,0 +1,30 @@ +# Copyright (c) 2021 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 KCONFIG_USEPKG_LVGL + bool "Configure LVGL" + depends on USEPKG_LVGL + help + Configure LVGL package via Kconfig. + +if KCONFIG_USEPKG_LVGL + +menu "LVGL RIOT configuration" + + config LVGL_INACTIVITY_PERIOD_MS + int "Inactivity period before blocking the LVGL thread (in ms)" + default 5000 + + config LVGL_TASK_HANDLER_DELAY_US + int "Delay between calls to the lvgl task handler (in us)" + default 5000 + +endmenu + +osource "$(RIOTBASE)/build/pkg/lvgl/Kconfig" + +endif diff --git a/pkg/lvgl/Makefile.include b/pkg/lvgl/Makefile.include index 714644097d..22d027aab3 100644 --- a/pkg/lvgl/Makefile.include +++ b/pkg/lvgl/Makefile.include @@ -8,6 +8,9 @@ ifneq (,$(filter lvgl_contrib,$(USEMODULE))) DIRS += $(RIOTBASE)/pkg/lvgl/contrib endif +# Configure the lvgl_riot_conf.h header for lvgl kconfig management +CFLAGS += -DLV_CONF_KCONFIG_EXTERNAL_INCLUDE=\""lvgl_riot_conf.h"\" + # lvgl module is not a concrete module, so declare it as a pseudomodule PSEUDOMODULES += lvgl