CHIPProjectAppConfig.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. *
  3. * Copyright (c) 2020-2023 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 CHIP Tool.
  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. // Uncomment this for a large Tunnel MTU.
  27. //#define CHIP_CONFIG_TUNNEL_INTERFACE_MTU (9000)
  28. // Enable support functions for parsing command-line arguments
  29. #define CHIP_CONFIG_ENABLE_ARG_PARSER 1
  30. // Use a default pairing code if one hasn't been provisioned in flash.
  31. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
  32. #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
  33. // Enable reading DRBG seed data from /dev/(u)random.
  34. // This is needed for test applications and the CHIP device manager to function
  35. // properly when CHIP_CONFIG_RNG_IMPLEMENTATION_CHIPDRBG is enabled.
  36. #define CHIP_CONFIG_DEV_RANDOM_DRBG_SEED 1
  37. // For convenience, Chip Security Test Mode can be enabled and the
  38. // requirement for authentication in various protocols can be disabled.
  39. //
  40. // WARNING: These options make it possible to circumvent basic Chip security functionality,
  41. // including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
  42. //
  43. #define CHIP_CONFIG_SECURITY_TEST_MODE 0
  44. #define CHIP_CONFIG_ENABLE_UPDATE 1
  45. #define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE 0
  46. #define CHIP_CONFIG_DATA_MANAGEMENT_CLIENT_EXPERIMENTAL 1
  47. #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY 1
  48. // Enable some test-only interaction model APIs.
  49. #define CONFIG_BUILD_FOR_HOST_UNIT_TEST 1
  50. // Allow us, for test purposes, to encode invalid enum values.
  51. #define CHIP_CONFIG_IM_ENABLE_ENCODING_SENTINEL_ENUM_VALUES 1
  52. #endif /* CHIPPROJECTCONFIG_H */