-
Notifications
You must be signed in to change notification settings - Fork 1
/
Kconfig
281 lines (225 loc) · 6.26 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
#
# Copyright (c) 2018 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menu "nRF Cloud Gateway App"
rsource "src/ui/Kconfig"
config APPLICATION_WORKQUEUE_STACK_SIZE
int "Application workqueue stack size"
default 4096
config APPLICATION_WORKQUEUE_PRIORITY
int "Application workqueue priority"
default SYSTEM_WORKQUEUE_PRIORITY
menu "Device and modem"
config POWER_OPTIMIZATION_ENABLE
bool "Enable power optimization"
default y
select LTE_EDRX_REQ
endmenu # Device
menu "Cloud"
config MQTT_KEEPALIVE
int "Time after last transmission to send a ping to keep connection on"
default 1200
help
This should be set to the expected time between messages sent from
this device. Making it larger than the expected data period does not
conserve bandwidth, as the ping is only sent if nothing else
has been within the specified period. Shorter values can prevent hidden
NAT timeouts at the carrier, but also will interrupt GPS fix attempts
and slow down TTFF.
config CLOUD_BUTTON
bool "Enable button sensor"
default y
config CLOUD_BUTTON_INPUT
int "Set button sensor button number"
range 1 4 if BOARD_NRF9160_PCA10090NS
range 1 1 if BOARD_NRF9160_PCA20035NS
default 1
config CLOUD_CONNECT_RETRY_DELAY
int "Cloud connection retry delay in seconds"
default 480
help
Time to wait before trying to connect to the cloud again if the
previous attempt failed (in seconds).
config CLOUD_CONNECT_COUNT_MAX
int "Maximum number of cloud connection attempts"
default 8
config CLOUD_WAIT_DURATION
int "Cloud connection acknowledge wait duration"
default 30
help
How long the device should wait for a CONNACK
event from the cloud.
config CLOUD_FOTA_APP
bool "Enable firmware over-the-air upgrades for application"
depends on AWS_FOTA || NRF_CLOUD_FOTA
depends on DFU_TARGET_MCUBOOT
default y
config CLOUD_FOTA_MODEM
bool "Enable firmware over-the-air upgrades for modem"
depends on AWS_FOTA || NRF_CLOUD_FOTA
depends on DFU_TARGET_MODEM_DELTA
default y
config CLOUD_FOTA_BOOT
bool "Enable firmware over-the-air upgrades for bootloader"
depends on AWS_FOTA || NRF_CLOUD_FOTA
depends on DFU_TARGET_MCUBOOT
depends on SECURE_BOOT
default y
config CLOUD_CONNECT_ERR_REBOOT_S
int "Seconds to wait before rebooting when a cloud connect error occurs"
default 300
endmenu # Cloud
choice
prompt "GPS device"
default GPS_USE_SIM
help
Select from which device GPS data will be fetched.
config GPS_USE_SIM
bool "Use GPS simulator"
select GPS_SIM
select GPS_SIM_TRIGGER
help
Use simulated GPS data.
config GPS_USE_EXTERNAL
bool "User provided GPS device"
help
Provide a GPS device that location data will be fetched from and
sent to nRF Cloud
endchoice
if GPS_USE_SIM
config GPS_DEV_NAME
string
default GPS_SIM_DEV_NAME
config GPS_TRIGGER
bool
default GPS_SIM_TRIGGER
endif
if GPS_USE_EXTERNAL
config GPS_DEV_NAME
string "GPS device name"
help
GPS device from which location data will be fetched and sent
to nRF Cloud.
endif
choice
prompt "nRF Cloud user association"
default CLOUD_UA_BUTTONS
help
Select which method to use for nRF Cloud user association
input.
config CLOUD_UA_BUTTONS
bool "Use buttons and switches"
help
Use buttons and switches on the development kit to provide
user association input.
config CLOUD_UA_CONSOLE
bool "Use console input"
help
Use console to enter nRF Cloud user association input.
Allowed input is as follows:
'b1' = Button 1
'b2' = Button 2
's1' = Switch 1
's2' = Switch 2
endchoice
config WATCHDOG_TIMEOUT_MSEC
int "Watchdog timeout in milliseconds"
default 10000
config FLASH_TEST
bool "Enable Flash Test module"
default n
select NRFX_SPIM if FLASH_TEST
select NRFX_SPIM3 if FLASH_TEST
select SPI if FLASH_TEST
select SPI_NOR if FLASH_TEST
help
Enable to test Erase, Write, and Read of external flash.
config SPM_NRF_REGULATORS_NS
bool "Regulators is Non-Secure"
default y
config MODEM_WAKEUP_PIN
int "modem wakeup pin"
default 17
help
Change the pin that wakes up the modem.
config ENTER_52840_MCUBOOT_VIA_BUTTON
bool "Button enables 52840 MCUboot"
depends on BOARD_APRICITY_GATEWAY_NRF9160 || BOARD_APRICITY_GATEWAY_NRF9160NS
help
Holding a button during and after startup will place the
nrf52840 into MCUboot mode so the firmware can be updated.
config SHELL_PROMPT_SECURE
string "Displayed prompt name"
default "uart:~# "
help
Displayed prompt name for UART backend once user has logged in.
config SHELL_DEFAULT_PASSWORD
string "Factory-set initial password"
default "nordic"
help
User needs to type this to enter the shell and execute
commands.
config GATEWAY_BLE_FOTA
bool "Enable BLE FOTA support"
default y
help
Enable ability to receive FOTA jobs for specific BLE devices,
then inject data from one or more file downloads to a BLE
device that supports a compatible DFU protocol.
config GATEWAY_DBG_CMDS
bool "Enable debugging commands"
default y
select CPU_LOAD
select CPU_LOAD_CMDS
select KERNEL_SHELL
config GATEWAY_SHELL
bool "Enable shell for administering nRF Cloud gateway"
default y
select SHELL
select SHELL_CMDS
select SHELL_HISTORY
select SHELL_METAKEYS
select SHELL_LOG_BACKEND
select SHELL_VT100_COLORS
select SHELL_BACKEND_SERIAL
select SHELL_CMDS_SELECT
config STARTING_LOG_OVERRIDE
bool "Different logging level at boot"
default n
help
All configured logging will occur if disabled. Otherwise,
logging changed to STARTING_LOG_LEVEL until user logs in and
manually enables with 'log enable inf' (or whatever level is
desired).
choice
prompt "Max compiled-in log level to boot with"
default STARTING_LOG_LEVEL_INF
depends on LOG
config STARTING_LOG_LEVEL_OFF
bool "Off"
config STARTING_LOG_LEVEL_ERR
bool "Error"
config STARTING_LOG_LEVEL_WRN
bool "Warning"
config STARTING_LOG_LEVEL_INF
bool "Info"
config STARTING_LOG_LEVEL_DBG
bool "Debug"
endchoice
config STARTING_LOG_LEVEL
int
depends on LOG
default 0 if STARTING_LOG_LEVEL_OFF
default 1 if STARTING_LOG_LEVEL_ERR
default 2 if STARTING_LOG_LEVEL_WRN
default 3 if STARTING_LOG_LEVEL_INF
default 4 if STARTING_LOG_LEVEL_DBG
endmenu
menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu
module = NRF_CLOUD_GATEWAY
module-str = nRF Cloud Gateway
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"