CHIPProjectConfig.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. * Copyright (c) 2022 Texas Instruments Incorporated
  3. * All rights reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /**
  18. * @file
  19. * Example project configuration file for CHIP.
  20. *
  21. * This is a place to put application or project-specific overrides
  22. * to the default configuration values for general CHIP features.
  23. *
  24. */
  25. #pragma once
  26. // Use a default pairing code if one hasn't been provisioned in flash.
  27. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
  28. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
  29. /**
  30. * CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER
  31. *
  32. * Enables the use of a hard-coded default serial number if none
  33. * is found in CHIP NV storage.
  34. */
  35. #define CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER "TEST_SN"
  36. /**
  37. * CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION
  38. *
  39. * The hardware version number assigned to device or product by the device vendor. This
  40. * number is scoped to the device product id, and typically corresponds to a revision of the
  41. * physical device, a change to its packaging, and/or a change to its marketing presentation.
  42. * This value is generally *not* incremented for device software versions.
  43. */
  44. #ifndef CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION
  45. #define CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION 1
  46. #endif
  47. /**
  48. * Values set by args.gni:
  49. * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
  50. * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
  51. * CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING
  52. * CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION
  53. */
  54. /**
  55. * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
  56. *
  57. * Enable support for CHIP-over-BLE (CHIPOBLE).
  58. */
  59. #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
  60. /**
  61. * CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC
  62. *
  63. * Enables synchronizing the device's real time clock with a remote CHIP Time service
  64. * using the CHIP Time Sync protocol.
  65. */
  66. //#define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 1
  67. /**
  68. * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
  69. *
  70. * A size, in bytes, of the individual debug event logging buffer.
  71. */
  72. #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)
  73. #define MATTER_CC13XX_26XX_PLATFORM_LOG_ENABLED 0
  74. /**
  75. * CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT
  76. *
  77. * Enable the OpenThread SRP client to allow for CHIP device discovery.
  78. */
  79. #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT 1
  80. /**
  81. * CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE
  82. *
  83. * For a development build, set the default importance of events to be logged as Debug.
  84. * Since debug is the lowest importance level, this means all standard, critical, info and
  85. * debug importance level vi events get logged.
  86. */
  87. #if BUILD_RELEASE
  88. #define CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE chip::Profiles::DataManagement::Production
  89. #else
  90. #define CHIP_CONFIG_EVENT_LOGGING_DEFAULT_IMPORTANCE chip::Profiles::DataManagement::Debug
  91. #endif // BUILD_RELEASE
  92. #define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1
  93. /**
  94. * @def CHIP_IM_MAX_NUM_COMMAND_HANDLER
  95. *
  96. * @brief Defines the maximum number of CommandHandler, limits the number of active commands transactions on server.
  97. */
  98. #define CHIP_IM_MAX_NUM_COMMAND_HANDLER 2
  99. /**
  100. * @def CHIP_IM_MAX_NUM_WRITE_HANDLER
  101. *
  102. * @brief Defines the maximum number of WriteHandler, limits the number of active write transactions on server.
  103. */
  104. #define CHIP_IM_MAX_NUM_WRITE_HANDLER 2