pkg: model lvgl configuration via Kconfig
This commit is contained in:
parent
be09c44bda
commit
b55c1152b7
@ -23,6 +23,7 @@ rsource "libcose/Kconfig"
|
|||||||
rsource "libfixmath/Kconfig"
|
rsource "libfixmath/Kconfig"
|
||||||
rsource "libhydrogen/Kconfig"
|
rsource "libhydrogen/Kconfig"
|
||||||
rsource "lora-serialization/Kconfig"
|
rsource "lora-serialization/Kconfig"
|
||||||
|
rsource "lvgl/Kconfig"
|
||||||
rsource "micro-ecc/Kconfig"
|
rsource "micro-ecc/Kconfig"
|
||||||
rsource "microcoap/Kconfig"
|
rsource "microcoap/Kconfig"
|
||||||
rsource "minmea/Kconfig"
|
rsource "minmea/Kconfig"
|
||||||
|
|||||||
30
pkg/lvgl/Kconfig
Normal file
30
pkg/lvgl/Kconfig
Normal 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
|
||||||
@ -8,6 +8,9 @@ ifneq (,$(filter lvgl_contrib,$(USEMODULE)))
|
|||||||
DIRS += $(RIOTBASE)/pkg/lvgl/contrib
|
DIRS += $(RIOTBASE)/pkg/lvgl/contrib
|
||||||
endif
|
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
|
# lvgl module is not a concrete module, so declare it as a pseudomodule
|
||||||
PSEUDOMODULES += lvgl
|
PSEUDOMODULES += lvgl
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user