CHIPProjectConfig.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. *
  3. * Copyright (c) 2020 Project CHIP Authors
  4. * Copyright (c) 2019 Google LLC.
  5. * All rights reserved.
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. */
  19. /**
  20. * @file
  21. * Example project configuration file for CHIP.
  22. *
  23. * This is a place to put application or project-specific overrides
  24. * to the default configuration values for general CHIP features.
  25. *
  26. */
  27. #pragma once
  28. // Use a default pairing code if one hasn't been provisioned in flash.
  29. #ifndef CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE
  30. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
  31. #endif
  32. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
  33. // For convenience, Chip Security Test Mode can be enabled and the
  34. // requirement for authentication in various protocols can be disabled.
  35. //
  36. // WARNING: These options make it possible to circumvent basic Chip security functionality,
  37. // including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
  38. //
  39. #define CHIP_CONFIG_SECURITY_TEST_MODE 0
  40. /**
  41. * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
  42. *
  43. * 0x1373: MediaTek's Vendor Id.
  44. */
  45. #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x1373
  46. /**
  47. * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
  48. *
  49. * 0x1003: Genio shell
  50. */
  51. #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x1003
  52. /**
  53. * CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION
  54. *
  55. * The hardware version number assigned to device or product by the device vendor. This
  56. * number is scoped to the device product id, and typically corresponds to a revision of the
  57. * physical device, a change to its packaging, and/or a change to its marketing presentation.
  58. * This value is generally *not* incremented for device software versions.
  59. */
  60. #define CHIP_DEVICE_CONFIG_DEVICE_HARDWARE_VERSION 1
  61. /**
  62. * CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING
  63. *
  64. * A string identifying the software version running on the device.
  65. * CHIP service currently expects the software version to be in the format
  66. * {MAJOR_VERSION}.0d{MINOR_VERSION}
  67. */
  68. #ifndef CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING
  69. #define CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING "0.1ALPHA"
  70. #endif
  71. /**
  72. * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
  73. *
  74. * Enable support for Chip-over-BLE (CHIPoBLE).
  75. */
  76. #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 0
  77. /**
  78. * CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER
  79. *
  80. * Enables the use of a hard-coded default serial number if none
  81. * is found in Chip NV storage.
  82. */
  83. #define CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER "TEST_SN"
  84. /**
  85. * CHIP_DEVICE_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
  86. *
  87. * Enable recording UTC timestamps.
  88. */
  89. #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1
  90. /**
  91. * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
  92. *
  93. * A size, in bytes, of the individual debug event logging buffer.
  94. */
  95. #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)
  96. #define _NO_NETWORK_COMMISSIONING_DRIVER_