sys/event: add modules to Kconfig
This commit is contained in:
parent
f8e4085899
commit
a7d1ebc0fd
46
sys/event/Kconfig
Normal file
46
sys/event/Kconfig
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright (c) 2020 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_EVENT
|
||||||
|
bool "Event queue"
|
||||||
|
depends on TEST_KCONFIG
|
||||||
|
select MODULE_CORE_THREAD_FLAGS
|
||||||
|
help
|
||||||
|
This module offers an event queue framework like libevent or libuev.
|
||||||
|
|
||||||
|
An event queue is basically a FIFO queue of events, with some functions
|
||||||
|
to efficiently and safely handle adding and getting events to / from
|
||||||
|
such a queue.
|
||||||
|
|
||||||
|
if MODULE_EVENT
|
||||||
|
|
||||||
|
config MODULE_EVENT_CALLBACK
|
||||||
|
bool "Support for callback-with-argument event type"
|
||||||
|
|
||||||
|
menuconfig MODULE_EVENT_THREAD
|
||||||
|
bool "Support for event handler threads"
|
||||||
|
help
|
||||||
|
There are three threads of different priorities that can be enabled.
|
||||||
|
|
||||||
|
if MODULE_EVENT_THREAD
|
||||||
|
|
||||||
|
config MODULE_EVENT_THREAD_LOWEST
|
||||||
|
bool "Lowest priority thread"
|
||||||
|
|
||||||
|
config MODULE_EVENT_THREAD_MEDIUM
|
||||||
|
bool "Medium priority thread"
|
||||||
|
|
||||||
|
config MODULE_EVENT_THREAD_HIGHEST
|
||||||
|
bool "Highest priority thread"
|
||||||
|
|
||||||
|
endif # MODULE_EVENT_THREAD
|
||||||
|
|
||||||
|
config MODULE_EVENT_TIMEOUT
|
||||||
|
bool "Support for triggering events after timeout"
|
||||||
|
select MODULE_XTIMER
|
||||||
|
|
||||||
|
endif # MODULE_EVENT
|
||||||
Loading…
x
Reference in New Issue
Block a user