forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathKconfig.defaults
455 lines (310 loc) · 7.13 KB
/
Kconfig.defaults
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
#
# Copyright (c) 2024 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# The purpose of this file is to define new default values of settings used when building Matter samples.
# This file only changes defaults and thus all symbols here must be promptless
# and safeguarded so that they only are applied when building Matter.
if CHIP
config CHIP_OPERATIONAL_TIME_SAVE_INTERVAL
default 1
if CHIP_FACTORY_DATA
config CHIP_DEVICE_VENDOR_ID
default 4151 # 0x1037
config CHIP_DEVICE_MANUFACTURING_DATE
default "2023-01-01"
config CHIP_DEVICE_PRODUCT_ID
default 41510 if SOC_SERIES_RW6XX
endif # CHIP_FACTORY_DATA
config LOG
default y
if LOG
choice LOG_MODE
default LOG_MODE_MINIMAL
endchoice
choice MATTER_LOG_LEVEL_CHOICE
default MATTER_LOG_LEVEL_DBG
endchoice
config CHIP_APP_LOG_LEVEL
default 4 # debug
config LOG_DEFAULT_LEVEL
default 1 # error
config CHIP_LOG_SIZE_OPTIMIZATION
default y
endif
config PRINTK_SYNC
default y
config ASSERT
default y
config ASSERT_NO_COND_INFO
default y
config ASSERT_NO_MSG_INFO
default y
config HW_STACK_PROTECTION
default y
config FPU
default y
config SHELL
default y
config PTHREAD_IPC
bool
default n
config POSIX_MAX_FDS
int
default 8
# Application stack size
config MAIN_STACK_SIZE
default 3072
config INIT_STACKS
default y
config NET_MGMT_EVENT_STACK_SIZE
default 1024
config NET_MGMT_EVENT_QUEUE_SIZE
default 20
config NET_IPV6_MLD
default y
config NET_IF_MCAST_IPV6_ADDR_COUNT
default 14
config NET_IF_MAX_IPV4_COUNT
default 2
config NET_IF_MAX_IPV6_COUNT
default 2
config NET_TC_TX_COUNT
default 1
config NET_TC_RX_COUNT
default 1
config NET_TC_THREAD_PRIO_CUSTOM
default y
choice NET_TC_THREAD_TYPE
default NET_TC_THREAD_PREEMPTIVE
endchoice
config NET_TCP_WORKER_PRIO
default -16
config NET_TC_TX_THREAD_BASE_PRIO
default 3
config NET_TC_RX_THREAD_BASE_PRIO
default 3
config NET_TC_SKIP_FOR_HIGH_PRIO
default y
config NET_CONTEXT_PRIORITY
default y
# Network buffers
config NET_PKT_RX_COUNT
default 14
config NET_PKT_TX_COUNT
default 14
config NET_BUF_RX_COUNT
default 36
config NET_BUF_TX_COUNT
default 36
config NET_BUF_DATA_SIZE
default 256
# Bluetooth Low Energy configs
config BT
default y
config BT_PERIPHERAL
default y
config BT_CENTRAL
default n
config BT_PERIPHERAL_PREF_MIN_INT
default 36
config BT_PERIPHERAL_PREF_MAX_INT
default 36
# Increase BT timeout to 5 s to improve connection reliability and avoid fast drop outs.
config BT_PERIPHERAL_PREF_TIMEOUT
default 500
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
default y
# Decrease connection parameters update time, as some Matter controllers request
# enabling IP networking faster than BT connection parameters are updated, what may result
# in commissioning instabilities.
config BT_CONN_PARAM_UPDATE_TIMEOUT
default 1000
config BT_GATT_DYNAMIC_DB
default y
config BT_DEVICE_NAME_DYNAMIC
default y
config BT_DEVICE_NAME_MAX
default 15
config BT_MAX_CONN
default 1
config BT_L2CAP_TX_MTU
default 247
config BT_BUF_ACL_RX_SIZE
default 251
config BT_BUF_ACL_TX_SIZE
default 251
config BT_RX_STACK_SIZE
default 2048 if NO_OPTIMIZATIONS && DEBUG
default 1700
config BT_LONG_WQ_STACK_SIZE
default 1024
config BT_DEVICE_NAME_GATT_WRITABLE
bool
default n
config HCI_NXP_ENABLE_AUTO_SLEEP
default n
config CHIP_OTA_REQUESTOR
default n
config CHIP_DEVICE_SOFTWARE_VERSION
default 1
# Enable extended discovery
config CHIP_EXTENDED_DISCOVERY
default y
config NVS_LOOKUP_CACHE
default y
config NVS_LOOKUP_CACHE_SIZE
default 1024
if CHIP_WIFI
choice NXP_WIFI_PART
default NXP_RW610 if SOC_SERIES_RW6XX
endchoice
config ZVFS_OPEN_MAX
default 30
choice SCHED_ALGORITHM
default SCHED_MULTIQ
endchoice
choice WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_CHOICE
default WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_INF
endchoice
choice WIFI_NM_WPA_SUPPLICANT_CRYPTO_BACKEND
default WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT
endchoice
config WIFI_NM_WPA_SUPPLICANT_THREAD_STACK_SIZE
default 6144
config WIFI_NM_WPA_SUPPLICANT_WQ_STACK_SIZE
default 5120
config WIFI_NM_WPA_SUPPLICANT_INF_MON
default n
config SYSTEM_WORKQUEUE_STACK_SIZE
default 2048
config NET_TCP_WORKQ_STACK_SIZE
default 2048
# align these numbers to match the OpenThread config
config NET_IF_UNICAST_IPV6_ADDR_COUNT
default 6
config NET_IF_MCAST_IPV6_ADDR_COUNT
default 8
config NET_SOCKETS_POLL_MAX
default 14
config NET_IPV4_FRAGMENT_MAX_COUNT
default 3
config NET_IPV4_FRAGMENT_MAX_PKT
default 7
config NET_IPV4_FRAGMENT_TIMEOUT
default 3
config NET_IPV6_FRAGMENT_MAX_COUNT
default 3
config NET_IPV6_FRAGMENT_MAX_PKT
default 8
config NET_IPV6_FRAGMENT_TIMEOUT
default 3
# options managed by IP4/IP6 simultaneous support
# aligned here to match OpenThread config
config NET_MAX_ROUTERS
default 1
config NET_MAX_CONN
default 10
config SHELL_STACK_SIZE
default 2616
config HEAP_MEM_POOL_SIZE
default 122880
config CHIP_MALLOC_SYS_HEAP_SIZE
default 28672 # 28 kB
endif
if CHIP_ETHERNET || CHIP_WIFI
choice LIBC_IMPLEMENTATION
default NEWLIB_LIBC
endchoice
endif
if CHIP_ETHERNET
choice NXP_ENET_DRIVER
default ETH_NXP_ENET
endchoice
endif
# Configure MBEDTLS lib
config MBEDTLS
default y
config MBEDTLS_CFG_FILE
default "config-tls-generic.h"
config MBEDTLS_USER_CONFIG_ENABLE
default y
config MBEDTLS_USER_CONFIG_FILE
default "nxp-zephyr-mbedtls-config.h"
config MBEDTLS_ENTROPY_ENABLED
default y
config MBEDTLS_ZEPHYR_ENTROPY
default y
config MBEDTLS_SSL_MAX_CONTENT_LEN
default 8192
config MBEDTLS_ENABLE_HEAP
default y
config MBEDTLS_HEAP_SIZE
default 15360
config MBEDTLS_CIPHER_AES_ENABLED
default y
config MBEDTLS_CIPHER_CCM_ENABLED
default y
config MBEDTLS_CTR_DRBG_ENABLED
default y
config MBEDTLS_CIPHER_MODE_CBC_ENABLED
default y
config MBEDTLS_ECP_C
default y
config MBEDTLS_ECP_DP_SECP256R1_ENABLED
default y
config CHIP_CRYPTO_PSA
default y
if CHIP_CRYPTO_PSA
config MBEDTLS_PSA_CRYPTO_C
default y
config WIFI_NM_WPA_SUPPLICANT_CRYPTO_MBEDTLS_PSA
default y if WIFI_NM_WPA_SUPPLICANT
endif
config MCUX_ELS_PKC
default y if SOC_SERIES_RW6XX
if MCUX_ELS_PKC
config MCUX_PSA_CRYPTO_DRIVER_ELS_PKC
default y if CHIP_CRYPTO_PSA
config MCUX_PSA_CRYPTO_DRIVER_ELS_PKC_THREAD
default y if CHIP_CRYPTO_PSA
config ENTROPY_GENERATOR
default y
endif # MCUX_ELS_PKC
if SHELL
config KERNEL_SHELL
default y
config DEVICE_SHELL
default y
config REBOOT
default y
# Disable not used shell modules
config SHELL_WILDCARD
default n
config SHELL_VT100_COLORS
default n
config SHELL_STATS
default n
config SENSOR_SHELL
default n
config DATE_SHELL
default n
config DEVMEM_SHELL
default n
config MCUBOOT_SHELL
default n
config FLASH_SHELL
default n
endif # SHELL
endif