mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
drivers/at: add modules to Kconfig
This commit is contained in:
parent
bb5370592d
commit
024b70cbe1
@ -4,6 +4,51 @@
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
menuconfig MODULE_AT
|
||||
bool "AT (Hayes) command set library"
|
||||
depends on HAS_PERIPH_UART
|
||||
depends on TEST_KCONFIG
|
||||
depends on MODULE_ISRPIPE
|
||||
depends on MODULE_ISRPIPE_READ_TIMEOUT
|
||||
select MODULE_FMT
|
||||
select MODULE_PERIPH_UART
|
||||
|
||||
if MODULE_AT
|
||||
|
||||
config MODULE_AT_URC
|
||||
bool "Support Unsolicited Result Codes (URC)"
|
||||
|
||||
config MODULE_AT_URC_ISR
|
||||
bool "Process URCs when they arrive"
|
||||
depends on MODULE_AT_URC
|
||||
depends on MODULE_EVENT_THREAD
|
||||
|
||||
choice
|
||||
bool "Thread priority"
|
||||
depends on MODULE_AT_URC_ISR
|
||||
default MODULE_AT_URC_ISR_MEDIUM
|
||||
help
|
||||
To process URCs upon arrival an event thread is used. The
|
||||
MODULE_EVENT_THREAD symbol should be set. Choose a priority for the
|
||||
thread that processes the URCs.
|
||||
|
||||
config MODULE_AT_URC_ISR_LOW
|
||||
bool "Low"
|
||||
select MODULE_EVENT_THREAD_LOW
|
||||
|
||||
config MODULE_AT_URC_ISR_MEDIUM
|
||||
bool "Medium"
|
||||
select MODULE_EVENT_THREAD_MEDIUM
|
||||
|
||||
config MODULE_AT_URC_ISR_HIGHEST
|
||||
bool "Highest"
|
||||
select MODULE_EVENT_THREAD_HIGHEST
|
||||
|
||||
endchoice
|
||||
|
||||
endif # MODULE_AT
|
||||
|
||||
menuconfig KCONFIG_USEMODULE_AT
|
||||
bool "Configure AT driver"
|
||||
depends on USEMODULE_AT
|
||||
|
@ -14,4 +14,5 @@ menuconfig MODULE_ISRPIPE
|
||||
|
||||
config MODULE_ISRPIPE_READ_TIMEOUT
|
||||
bool "ISR Pipe read with timeout"
|
||||
depends on MODULE_ISRPIPE && MODULE_XTIMER
|
||||
depends on MODULE_ISRPIPE
|
||||
select MODULE_XTIMER
|
||||
|
Loading…
Reference in New Issue
Block a user