forked from nrfconnect/sdk-sidewalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
216 lines (169 loc) · 5.43 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
#
# 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 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 10
help
Set the message queue size for the Sidewalk thread.
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 1024 if SIDEWALK_ACE_OSAL_ZEPHYR
default 0
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"
# DFU
menuconfig SIDEWALK_DFU
bool "DFU service in Sidewalk sample"
if SIDEWALK_DFU
config SIDEWALK_DFU_SERVICE_BLE
bool "DFU sericve over BLE"
default SIDEWALK_DFU
help
Use Zephyr SMP Service as image upload methode for Sidewalk.
endif # SIDEWALK_DFU
config SIDEWALK_PAL_RADIO_SOURCE
bool "Build sub-GHz radio driver from sources [EXPERIMENTAL]"
select EXPERIMENTAL
rsource "Kconfig.dependencies"
rsource "utils/Kconfig"
endif # SIDEWALK