forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
223 lines (184 loc) · 5.24 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#
# Copyright (c) 2019 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
source "Kconfig.zephyr"
menu "Nordic Serial LTE Modem"
config SLM_CUSTOMER_VERSION
string "Customer version string"
help
This version is reported together with baseline versions by AT command "#XSLMVER".
config SLM_AT_MAX_PARAM
int "Maximum number of parameters in AT command"
default 42
#
# external XTAL for UART
#
config SLM_EXTERNAL_XTAL
bool "Use external XTAL for UARTE"
default y
#
# AT command terminator
#
choice
prompt "Termination mode"
default SLM_CR_LF_TERMINATION
help
Sets the command terminator used by the serial terminal.
Available options are:
- CR termination
- LF termination
- CR+LF termination
config SLM_CR_TERMINATION
bool "CR termination"
config SLM_LF_TERMINATION
bool "LF termination"
config SLM_CR_LF_TERMINATION
bool "CR+LF termination"
endchoice
#
# UART buffers (when CMUX is not in use)
#
config SLM_UART_RX_BUF_COUNT
int "Receive buffers for UART"
range 2 4
default 3
help
Amount of buffers for receiving (RX) UART traffic. If the buffers are full, UART RX will be disabled until the buffers are processed.
config SLM_UART_RX_BUF_SIZE
int "Receive buffer size for UART"
range 128 4096
default 256
help
Amount of received (RX), unprocessed, UART traffic that can be held by single buffer.
config SLM_UART_TX_BUF_SIZE
int "Send buffer size for UART"
range 128 4096
default 256
help
Amount of UART traffic waiting to be sent (TX), that can be held. If the buffers are full, will send synchronously.
#
# GPIO functionality
#
config SLM_START_SLEEP
bool "Enter sleep on startup"
help
If enabled, the SiP is put into deep sleep when powered on.
It can then be started using SLM_POWER_PIN.
config SLM_POWER_PIN
int "Power pin"
default -1
help
Interface GPIO pin used to put the SiP into deep sleep and wake up from it or exit idle.
The pin is configured with a pull up and must be pulled down shortly to perform one power off or wake up operation.
config SLM_INDICATE_PIN
int "Indicate pin"
default -1
help
Interface GPIO pin used to indicate that data is available when SLM is idle (after #XSLEEP=2 AT command).
config SLM_INDICATE_TIME
int "Indication period"
default 100
help
GPIO active indication time in milliseconds. This setting specify the period length for the pin to be active
#
# LTE network automatic attach
#
config SLM_AUTO_CONNECT
bool "Automatically connect to the LTE network on start-up or after a reset"
help
Enables automatic connection to the LTE network using the PDN configuration defined in 'slm_auto_connect.h'.
#
# TCP/TLS proxy
#
config SLM_TCP_POLL_TIME
int "Poll time-out in seconds for TCP connection"
default 10
config SLM_UDP_POLL_TIME
int "Poll time-out in seconds for UDP connection"
default 10
#
# Data mode
#
config SLM_DATAMODE_TERMINATOR
string "Pattern string to terminate data mode"
default "+++"
help
Use a pattern to terminate data mode
config SLM_DATAMODE_URC
bool "Send URC in data mode"
help
Report result of data mode sending
config SLM_DATAMODE_BUF_SIZE
int "Buffer size for data mode"
range 1024 8192
default 4096
help
Size of the buffer for data received in data mode.
#
# Configurable services
#
config SLM_SMS
bool "SMS support in SLM"
default y
select SMS
help
Support SMS send/receive in plain text
config SLM_GNSS
bool "GNSS support in SLM"
default y
config SLM_NRF_CLOUD
bool "nRF Cloud support in SLM"
default y
config SLM_FULL_FOTA
bool "Full modem FOTA support in SLM"
default n
depends on !BOARD_THINGY91_NRF9160_NS
config SLM_PPP
bool "PPP support in SLM"
help
When enabled, SLM automatically brings up/down the PPP link
when the LTE link (default PDN) is connected/disconnected,
regardless of what is done with AT#XPPP.
if SLM_PPP
config SLM_PPP_FALLBACK_MTU
int "Fallback MTU to be used by PPP"
default 1280
help
PPP tries to retrieve the cellular link MTU from the modem (using `AT+CGCONTRDP=0`).
If no MTU is returned by the modem, this value will be used as a fallback.
The MTU will be used for sending and receiving of data on both the PPP and cellular links.
endif
config SLM_CMUX
bool "CMUX support in SLM"
if SLM_CMUX && SLM_PPP
config SLM_CMUX_AUTOMATIC_FALLBACK_ON_PPP_STOPPAGE
bool "AT channel automatic fallback to DLCI 1 when PPP stops."
help
This is mainly intended for compatibility with Zephyr's cellular modem driver.
If enabled, when PPP stops (which happens automatically when the LTE link goes down)
CMUX will make the AT channel be on DLCI 1. This only has an effect if it had been
configured to be elsewhere, e.g. with AT#XCMUX=2.
endif
if SLM_CMUX || SLM_PPP
config SLM_MODEM_PIPE_TIMEOUT
int "Timeout for the CMUX and PPP modem pipe operations in seconds"
default 10
endif
config SLM_SKIP_READY_MSG
bool "Skip ready message"
help
Skip sending the ready message when the application is powered on.
module = SLM
module-str = serial modem
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
rsource "src/ftp_c/Kconfig"
rsource "src/mqtt_c/Kconfig"
rsource "src/http_c/Kconfig"
rsource "src/twi/Kconfig"
rsource "src/gpio/Kconfig"
rsource "src/lwm2m_carrier/Kconfig"
rsource "src/gnss/Kconfig"
rsource "src/nativetls/Kconfig"
endmenu