forked from nrfconnect/sdk-sidewalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig
286 lines (226 loc) · 7.39 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
282
283
284
285
286
#
# Copyright (c) 2023 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menuconfig SIDEWALK
bool "Enable Amazon Sidewalk"
imply SIDEWALK_DFU
if SIDEWALK
# General
config MAIN_STACK_SIZE
default 2048
config SIDEWALK_SUBGHZ_SUPPORT
bool "Enable Sub-GHz link type support in Sidewalk libraries"
default y
help
Use Sidewalk with support for BLE, LoRa and FSK.
if SIDEWALK_SUBGHZ_SUPPORT
config SIDEWALK_SUBGHZ_TRIM_CAP_VAL
hex "value for trim cap used by subGHz radio"
range 0x0 0xFFFF
default 0x1212
help
The value of the trim cap. Default value works for Semtech SX1262 shield.
endif
choice SIDEWALK_LINK_MASK
prompt "Physical link type [DEPRICATED]"
default SIDEWALK_LINK_MASK_BLE
help
Select the physical link type for Sidewalk connection.
config SIDEWALK_LINK_MASK_BLE
bool "Bluetooth Low Energy link [DEPRICATED]"
config SIDEWALK_LINK_MASK_FSK
bool "Sub-GHz link for FSK [DEPRICATED]"
config SIDEWALK_LINK_MASK_LORA
bool "Sub-GHz link for LORA [DEPRICATED]"
endchoice # SIDEWALK_LINK_MASK
config SIDEWALK_THREAD_STACK_SIZE
int "Stack size for the Sidewalk thread"
range 8192 131072
default 8192
help
Set the internal stack size for Sidewalk thread.
config SIDEWALK_THREAD_QUEUE_SIZE
int "Message queue size for the Sidewalk thread"
range 4 256
default 16
help
Set the message queue size for the Sidewalk thread.
config SIDEWALK_THREAD_QUEUE_TIMEOUT
bool "Message queue timeout for the Sidewalk thread [EXPERIMENTAL]"
select EXPERIMENTAL
help
Set the message queue put timeout for the Sidewalk thread.
The events form interrupt conetext are always put with no timeout.
if SIDEWALK_THREAD_QUEUE_TIMEOUT
config SIDEWALK_THREAD_QUEUE_TIMEOUT_VALUE
int "Message queue timeout value in ms [EXPERIMENTAL]"
default 300
endif # SIDEWALK_THREAD_QUEUE_TIMEOUT
config SIDEWALK_THREAD_PRIORITY
int "Priority of the Sidewalk thread"
range -16 14
default 14
help
Priority at which the Sidewalk thread runs.
config SIDEWALK_HEAP_SIZE
int "Heap size for Sidewalk utils"
default 5120 if SIDEWALK_ACE_OSAL_ZEPHYR
default 4096
help
Set the heap size for dynamic memory alocation in Sidewalk.
config SIDEWALK_TRACE_HEAP
bool "Trace allocation and free of Sidewalk heap"
help
Add debug log to every alloc and free operation on Sidewalk heap.
config SID_HAL_PROTOCOL_MEMORY_SZ
int
default 1024
# Log
config SIDEWALK_LOG_MSG_LENGTH_MAX
int "Log message max length"
default 80
help
Maxium message length for Sidewalk PAL log in bytes.
module = SIDEWALK
module-str = Amazon Sidewalk
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
module = SIDEWALK_CRYPTO
module-str = Amazon Sidewalk Crypto
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
module = SIDEWALK_BLE_ADAPTER
module-str = Sidewalk BLE interface
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
module = SPI_BUS
module-str = Sidewalk spi bus interface
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
config DEPRECATED_SIDEWALK_PAL_INIT
bool "Enable Sidewalk platform init module [DEPRICATED]"
help
Sidewalk 1.16 stack introduces new sid api sid_platform_init.
Now new api togehter with sid_common pal are used by default.
# BLE
config DEPRECATED_SIDEWALK_BLE_MAC_ADDR_TYPE
bool "Enable Sidewalk BLE MAC addres type choice [DEPRICATED]"
help
The BLE MAC address type can be set using NCS configs.
By default Sidewalk will use private random address.
if DEPRECATED_SIDEWALK_BLE_MAC_ADDR_TYPE
choice SIDEWALK_BLE_MAC_ADDR_TYPE
prompt "BLE MAC address type [DEPRICATED]"
default MAC_ADDRESS_TYPE_RANDOM_PRIVATE_RESOLVABLE
config MAC_ADDRESS_TYPE_PUBLIC
bool "Public Address [DEPRICATED]"
help
Address obtained from IEEE registration authority, no privacy.
config MAC_ADDRESS_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE
bool "Random Private Non-Resolvable Address [DEPRICATED]"
imply BT_SMP
help
Random generated address non resolvable by remote
changes on every advertisement or connection.
config MAC_ADDRESS_TYPE_STATIC_RANDOM
bool "Random Static Address [DEPRICATED]"
help
Random generated address changes on each device boot up or
stay fixed for lifetime of device.
config MAC_ADDRESS_TYPE_RANDOM_PRIVATE_RESOLVABLE
bool "Random Private Resolvable Address [DEPRICATED]"
imply BT_SMP
imply BT_PRIVACY
help
Random generated address with IRK(Identity Resolving Key)
resolvable by remote. Used when bonding is enabled.
endchoice # SIDEWALK_BLE_MAC_ADDR_TYPE
if MAC_ADDRESS_TYPE_PUBLIC
config SID_BT_PUB_ADDR
string "Public MAC address for controller [DEPRICATED]"
default "AA:FF:BB:EE:CC:DD"
help
Specify a MAC address for the BLE interface in the form of
six hex 8-bit chars separated by colons (e.g.:AA:BB:CC:DD:EE:FF).
endif # MAC_ADDRESS_TYPE_PUBLIC
endif # DEPRECATED_SIDEWALK_BLE_MAC_ADDR_TYPE
config SIDEWALK_BLE_ADV_INT_PRECISION
int "Precision of advertisement interval in ms"
range 1 1000
default 5
config SIDEWALK_BLE_ADV_INT_FAST
int "Fast advertise interval in ms"
range 20 10240
default 160
config SIDEWALK_BLE_ADV_INT_SLOW
int "Slow advertise interval in ms"
range 20 10240
default 1000
config SIDEWALK_BLE_ADV_INT_TRANSITION
int "Duration of fast advertisement after sid_start in seconds"
range 1 2147483647
default 30
config SIDEWALK_VENDOR_SERVICE
bool "Enable Sidewalk BLE vendor service"
config SIDEWALK_LOGGING_SERVICE
bool "Enable Sidewalk BLE logging service"
config SIDEWALK_DEMO_PARSER
bool "Enable sensor monitoring demo parser module"
config SIDEWALK_ON_DEV_CERT
bool "Enable Sidewalk on device certification"
depends on SHELL
config DEPRECATED_SIDEWALK_MFG_STORAGE
bool "Enable previous implementation of manufacturing module [DEPREACATED]"
imply FLASH
help
Previous Sidewalk manufacturing storage module
This implementation is DEPRECATED.
config SIDEWALK_MFG_STORAGE_SUPPORT_HEX_v7
bool "Enable support for old Sidewalk manufaturing hex format"
default y
depends on SIDEWALK_MFG_STORAGE
help
Sidewalk manifactuing module uses version 8, with tlv format
Old fromats - version7 and before, are based on memory offsets
and will be supported after enabling this configuration.
config SIDEWALK_CRYPTO_PSA_KEY_STORAGE
bool "Enable psa crypto storage for persistent Sidewalk keys [EXPERIMENTAL]"
default SIDEWALK
select EXPERIMENTAL
help
Use secure key storage for persistent Sidewalk keys.
Once you flash the firmware with this config enabled,
it must be enabled in every subsequent build.
Otherwise, the keys will not be found and Sidewalk will not start.
config SIDEWALK_PAL_RADIO_SOURCE
bool "Build sub-GHz radio driver from sources [EXPERIMENTAL]"
select EXPERIMENTAL
if SIDEWALK_SPI_BUS
choice SIDEWALK_NRFX_SPI_INSTANCE_ID
prompt "Instance of the NRX SPI driver"
depends on SOC_NRF52840
default SIDEWALK_NRFX_SPI2
help
Select the NRFX SPI instance.
The same SPI instance must be disabled in the DTS.
config SIDEWALK_NRFX_SPI0
bool "SPI0"
select NRFX_SPI0
config SIDEWALK_NRFX_SPI1
bool "SPI1"
select NRFX_SPI1
config SIDEWALK_NRFX_SPI2
bool "SPI2"
select NRFX_SPI2
endchoice # SIDEWALK_NRFX_SPI_INSTANCE_ID
config SIDEWALK_NRFX_SPI_ID
int
depends on SOC_NRF52840
default 2
default 1 if SIDEWALK_NRFX_SPI1
default 0 if SIDEWALK_NRFX_SPI0
endif # SIDEWALK_SPI_BUS
rsource "Kconfig.dependencies"
rsource "utils/Kconfig"
endif # SIDEWALK
config SIDEWALK_MFG_PARSER_MAX_ELEMENT_SIZE
int "Max size of element in MFG"
default 64