1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

pkg: model lvgl configuration via Kconfig

This commit is contained in:
Alexandre Abadie 2021-04-18 16:28:30 +02:00
parent be09c44bda
commit b55c1152b7
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
3 changed files with 34 additions and 0 deletions

View File

@ -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"

30
pkg/lvgl/Kconfig Normal file
View File

@ -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

View File

@ -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