CHIPProjectAppConfig.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. *
  3. * Copyright (c) 2020-2022 Project CHIP Authors
  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. * Project configuration for Matter Controller.
  20. *
  21. */
  22. #ifndef CHIPPROJECTCONFIG_H
  23. #define CHIPPROJECTCONFIG_H
  24. #define CHIP_CONFIG_MAX_FABRICS 17
  25. #define CHIP_CONFIG_EVENT_LOGGING_NUM_EXTERNAL_CALLBACKS 2
  26. // Enable support functions for parsing command-line arguments
  27. #define CHIP_CONFIG_ENABLE_ARG_PARSER 1
  28. // Use a default pairing code if one hasn't been provisioned in flash.
  29. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
  30. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
  31. // Enable reading DRBG seed data from /dev/(u)random.
  32. // This is needed for test applications and the CHIP device manager to function
  33. // properly when CHIP_CONFIG_RNG_IMPLEMENTATION_CHIPDRBG is enabled.
  34. #define CHIP_CONFIG_DEV_RANDOM_DRBG_SEED 1
  35. // For convenience, Chip Security Test Mode can be enabled and the
  36. // requirement for authentication in various protocols can be disabled.
  37. //
  38. // WARNING: These options make it possible to circumvent basic Chip security functionality,
  39. // including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
  40. //
  41. #define CHIP_CONFIG_SECURITY_TEST_MODE 0
  42. #define CHIP_CONFIG_ENABLE_UPDATE 1
  43. #define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE 0
  44. #define CHIP_CONFIG_DATA_MANAGEMENT_CLIENT_EXPERIMENTAL 1
  45. #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY 1
  46. // Enable some test-only interaction model APIs.
  47. #define CONFIG_BUILD_FOR_HOST_UNIT_TEST 1
  48. #endif /* CHIPPROJECTCONFIG_H */