|
| 1 | +# |
| 2 | +# Copyright (c) 2023 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 | +# This sample uses sample-defaults.conf to set options common for all |
| 18 | +# samples. This file should contain only options specific for this sample |
| 19 | +# or overrides of default values. |
| 20 | + |
| 21 | +# enable GPIO |
| 22 | +CONFIG_GPIO=y |
| 23 | + |
| 24 | +# enable PWM |
| 25 | +CONFIG_PWM=y |
| 26 | + |
| 27 | +# OpenThread configs |
| 28 | +#CONFIG_OPENTHREAD_MTD=n |
| 29 | +CONFIG_OPENTHREAD_FTD=y |
| 30 | +# CONFIG_CHIP_ENABLE_SLEEPY_END_DEVICE_SUPPORT=y |
| 31 | +CONFIG_CHIP_THREAD_SSED=n |
| 32 | + |
| 33 | +# Default OpenThread network settings |
| 34 | +CONFIG_OPENTHREAD_PANID=4660 |
| 35 | +CONFIG_OPENTHREAD_CHANNEL=15 |
| 36 | +CONFIG_OPENTHREAD_NETWORK_NAME="OpenThreadDemo" |
| 37 | +CONFIG_OPENTHREAD_XPANID="11:11:11:11:22:22:22:22" |
| 38 | + |
| 39 | +# Disable Matter OTA DFU |
| 40 | +CONFIG_CHIP_OTA_REQUESTOR=n |
| 41 | + |
| 42 | +# CHIP configuration |
| 43 | +CONFIG_CHIP_PROJECT_CONFIG="include/CHIPProjectConfig.h" |
| 44 | +CONFIG_CHIP_OPENTHREAD_CONFIG="../../platform/telink/project_include/OpenThreadConfig.h" |
| 45 | + |
| 46 | +CONFIG_CHIP_DEVICE_VENDOR_ID=65521 |
| 47 | +# 32786 == 0x8012 (example shell-app) |
| 48 | +CONFIG_CHIP_DEVICE_PRODUCT_ID=32786 |
| 49 | +CONFIG_CHIP_DEVICE_TYPE=65535 |
| 50 | + |
| 51 | +CONFIG_CHIP_DEVICE_SOFTWARE_VERSION=1 |
| 52 | +CONFIG_CHIP_DEVICE_SOFTWARE_VERSION_STRING="2023" |
| 53 | + |
| 54 | +# Enable CHIP pairing automatically on application start. |
| 55 | +CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y |
| 56 | + |
| 57 | +# CHIP shell |
| 58 | +CONFIG_CHIP_LIB_SHELL=y |
| 59 | +CONFIG_OPENTHREAD_SHELL=y |
| 60 | +CONFIG_SHELL=y |
| 61 | + |
| 62 | +# Disable factory data support. |
| 63 | +CONFIG_CHIP_FACTORY_DATA=n |
| 64 | +CONFIG_CHIP_FACTORY_DATA_BUILD=n |
| 65 | +CONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=n |
| 66 | +CONFIG_CHIP_CERTIFICATION_DECLARATION_STORAGE=n |
| 67 | + |
| 68 | +# Enable Power Management |
| 69 | +CONFIG_PM=n |
| 70 | + |
| 71 | +# Custom RF power values |
| 72 | +CONFIG_B91_BLE_CTRL_RF_POWER_P9P11DBM=y |
| 73 | +CONFIG_OPENTHREAD_DEFAULT_TX_POWER=9 |
0 commit comments