mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
109 lines
2.6 KiB
Plaintext
109 lines
2.6 KiB
Plaintext
# Copyright (c) 2020 Freie Universitaet Berlin
|
|
#
|
|
# 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_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_LOWEST
|
|
bool "Lowest"
|
|
select MODULE_EVENT_THREAD_LOWEST
|
|
|
|
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
|
|
help
|
|
Configure the AT driver using Kconfig.
|
|
|
|
if KCONFIG_USEMODULE_AT
|
|
|
|
choice
|
|
bool "End of line character"
|
|
default AT_SEND_EOL_MAC
|
|
help
|
|
Select the EOL character to send after the AT command.
|
|
The character sequence depends on target device.
|
|
By default "\r", aka carriage return, is used.
|
|
|
|
config AT_SEND_EOL_WINDOWS
|
|
bool "\\r\\n"
|
|
|
|
config AT_SEND_EOL_UNIX
|
|
bool "\\n"
|
|
|
|
config AT_SEND_EOL_MAC
|
|
bool "\\r"
|
|
|
|
endchoice
|
|
|
|
config AT_SEND_SKIP_ECHO
|
|
bool "Disable check for echo"
|
|
help
|
|
Enable this to disable check for echo after an AT
|
|
command is sent.
|
|
|
|
config AT_RECV_OK
|
|
string "OK reply string"
|
|
default "OK"
|
|
help
|
|
Change okay response of the AT device.
|
|
|
|
config AT_RECV_ERROR
|
|
string "Error reply string"
|
|
default "ERROR"
|
|
help
|
|
Change error response of the AT device.
|
|
|
|
config AT_BUF_SIZE_EXP
|
|
int "Exponent for the buffer size (resulting in the queue size 2^n)"
|
|
range 0 31
|
|
default 7
|
|
depends on USEMODULE_AT_URC
|
|
help
|
|
Size of buffer used to process unsolicited result code data. (as
|
|
exponent of 2^n). As the buffer size ALWAYS needs to be power of two,
|
|
this option represents the exponent of 2^n, which will be used as the
|
|
size of the buffer.
|
|
|
|
endif # KCONFIG_USEMODULE_AT
|