Jandy Gou | 3ffd066 | 2022-06-14 22:02:05 +0800 | [diff] [blame] | 1 | # |
| 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 | |
| 20 | if CHIP |
| 21 | |
| 22 | # MCU Manager and SMP configuration |
| 23 | config MCUMGR |
| 24 | bool |
| 25 | default y |
| 26 | |
| 27 | config MCUMGR_CMD_IMG_MGMT |
| 28 | bool |
| 29 | default y |
| 30 | |
| 31 | config MCUMGR_CMD_OS_MGMT |
| 32 | bool |
| 33 | default y |
| 34 | |
| 35 | config MCUMGR_SMP_BT |
| 36 | bool |
| 37 | default y |
| 38 | |
| 39 | config MCUMGR_SMP_BT_AUTHEN |
| 40 | bool |
| 41 | default n |
| 42 | |
| 43 | config MCUMGR_BUF_COUNT |
| 44 | int |
| 45 | default 6 |
| 46 | |
| 47 | # Increase BT MTU and RX buffer for big size DFU messages |
| 48 | config BT_L2CAP_TX_MTU |
| 49 | int |
| 50 | default 498 |
| 51 | |
| 52 | config 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 |
| 57 | config MCUMGR_BUF_SIZE |
| 58 | int |
| 59 | default 1024 |
| 60 | |
| 61 | # Increase system workqueue size, as SMP is processed within it |
| 62 | config SYSTEM_WORKQUEUE_STACK_SIZE |
| 63 | int |
| 64 | default 2800 |
| 65 | |
| 66 | endif # CHIP_DFU_OVER_BT_SMP |
| 67 | |
| 68 | endif # CHIP |