1
0
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:
Leandro Lanzieri 2020-11-11 16:26:12 +01:00
parent bb5370592d
commit 024b70cbe1
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 47 additions and 1 deletions

View File

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

View File

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