prj.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. # This sample uses sample-defaults.conf to set options common for all
  17. # samples. This file should contain only options specific for this sample
  18. # or overrides of default values.
  19. # Enable CHIP
  20. CONFIG_CHIP=y
  21. CONFIG_STD_CPP17=y
  22. # enable GPIO
  23. CONFIG_GPIO=y
  24. # enable PWM
  25. CONFIG_PWM=y
  26. # CHIP configuration
  27. CONFIG_CHIP_PROJECT_CONFIG="include/CHIPProjectConfig.h"
  28. CONFIG_CHIP_OPENTHREAD_CONFIG="../../platform/telink/project_include/OpenThreadConfig.h"
  29. # 32786 == 0x8012 (example shell-app)
  30. CONFIG_CHIP_DEVICE_PRODUCT_ID=32786
  31. # Disable Matter OTA DFU
  32. CONFIG_CHIP_OTA_REQUESTOR=n
  33. CONFIG_CHIP_DEVICE_SOFTWARE_VERSION=1
  34. # Enable CHIP pairing automatically on application start.
  35. CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y
  36. # Disable CHIP shell support
  37. CONFIG_CHIP_LIB_SHELL=y
  38. CONFIG_OPENTHREAD_SHELL=y
  39. CONFIG_SHELL=y
  40. # Disable factory data support
  41. CONFIG_CHIP_FACTORY_DATA=n
  42. CONFIG_CHIP_FACTORY_DATA_BUILD=n
  43. CONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=n
  44. CONFIG_CHIP_CERTIFICATION_DECLARATION_STORAGE=n
  45. # Enable Power Management
  46. CONFIG_PM=n
  47. # Custom RF power values
  48. CONFIG_B9X_BLE_CTRL_RF_POWER_P9P11DBM=y
  49. CONFIG_OPENTHREAD_DEFAULT_TX_POWER=9