blob: bc800095dc7ce03738b4b2cc58c35125e2f93bf2 [file] [log] [blame]
Jandy Gou3ffd0662022-06-14 22:02:05 +08001#
2# Copyright (c) 2022 Project CHIP Authors
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# The purpose of this file is to define Kconfig options enabling specific features.
18# Feature options will define defaults for settings that are related to the specific feature.
19
20if CHIP
21
22# MCU Manager and SMP configuration
23config MCUMGR
24 bool
25 default y
26
27config MCUMGR_CMD_IMG_MGMT
28 bool
29 default y
30
31config MCUMGR_CMD_OS_MGMT
32 bool
33 default y
34
35config MCUMGR_SMP_BT
36 bool
37 default y
38
39config MCUMGR_SMP_BT_AUTHEN
40 bool
41 default n
42
43config MCUMGR_BUF_COUNT
44 int
45 default 6
46
47# Increase BT MTU and RX buffer for big size DFU messages
48config BT_L2CAP_TX_MTU
49 int
50 default 498
51
52config BT_BUF_ACL_RX_SIZE
53 int
54 default 502
55
56# Increase MCUMGR_BUF_SIZE, as it must be big enough to fit MAX MTU + overhead and for single-image DFU default is 384 B
57config MCUMGR_BUF_SIZE
58 int
59 default 1024
60
61# Increase system workqueue size, as SMP is processed within it
62config SYSTEM_WORKQUEUE_STACK_SIZE
63 int
64 default 2800
65
66endif # CHIP_DFU_OVER_BT_SMP
67
68endif # CHIP