-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
153 lines (131 loc) · 3.04 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
#
# Copyright (c) 2019 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
source "Kconfig.zephyr"
menu "Nordic Serial LTE Modem"
config SLM_CUSTOMIZED
bool "Flag for customized functionality"
help
Enable this flag to include customized logic.
config SLM_AT_MODE
bool "Serial LTE Modem by raw AT mode"
default y
select AT_CMD_PARSER
config SLM_AT_MAX_PARAM
int "Maximum number of parameters in AT command"
default 42
config SLM_NATIVE_TLS
bool "Use Zephyr mbedTLS"
#
# external XTAL for UART
#
config SLM_EXTERNAL_XTAL
bool "Use external XTAL for UARTE"
default y
#
# Inter-Connect
#
config SLM_UART_HWFC_RUNTIME
bool "Support of UART HWFC runtime configuration"
help
Selected if hw-flow-control is enabled in devicetree
choice
prompt "UART for interconnect"
help
Selects which UART to use for interconnect:
- UART 0
- UART 2
config SLM_CONNECT_UART_0
bool "UART 0"
select SLM_UART_HWFC_RUNTIME if $(dt_node_has_prop,uart0,hw-flow-control)
config SLM_CONNECT_UART_2
bool "UART 2"
select SLM_UART_HWFC_RUNTIME if $(dt_node_has_prop,uart2,hw-flow-control)
endchoice
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
#
# GPIO wakeup
#
config SLM_START_SLEEP
bool "Enter sleep on startup"
help
Put nRF9160 into deep sleep mode after startup.
config SLM_WAKEUP_PIN
int "Wakeup pin"
default -1
help
Interface GPIO to wake up from sleep or exit idle
config SLM_INDICATE_PIN
int "Indicate pin"
default -1
help
Interface GPIO pin used to indicate that data is available or an unexpected reset has occurred
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
#
# Socket
#
config SLM_SOCKET_RX_MAX
int "Maximum RX buffer size for receiving socket data"
range 576 708
default 576
help
Default: NET_IPV4_MTU (576)
Maximum: MSS setting in modem (708)
#
# 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
#
# Configurable services
#
config SLM_SMS
bool "SMS support in SLM"
default y
select SMS
help
Support SMS send/receive in plain text
rsource "src/gnss/Kconfig"
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/dfu/Kconfig"
module = SLM
module-str = serial modem
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
endmenu