3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2019 Google LLC.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 * Example project configuration file for CHIP.
24 * This is a place to put application or project-specific overrides
25 * to the default configuration values for general CHIP features.
32 * CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY
34 * Enables the use of a hard-coded default Chip device id and credentials if no device id
35 * is found in Chip NV storage.
37 * This option is for testing only and should be disabled in production releases.
39 #define CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY 34
41 // Use a default pairing code if one hasn't been provisioned in flash.
42 #ifndef CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE
43 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 12345678
45 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
47 // For convenience, Chip Security Test Mode can be enabled and the
48 // requirement for authentication in various protocols can be disabled.
50 // WARNING: These options make it possible to circumvent basic Chip security functionality,
51 // including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
53 #define CHIP_CONFIG_SECURITY_TEST_MODE 0
54 #define CHIP_CONFIG_REQUIRE_AUTH 1
57 * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
59 * 0x235A: Chip's Vendor Id.
61 #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x235A
64 * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
66 * 0x534C: EFR32 lighting-app
68 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x534C
71 * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION
73 * The product revision number assigned to device or product by the device vendor. This
74 * number is scoped to the device product id, and typically corresponds to a revision of the
75 * physical device, a change to its packaging, and/or a change to its marketing presentation.
76 * This value is generally *not* incremented for device software revisions.
78 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION 1
81 * CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
83 * A string identifying the firmware revision running on the device.
84 * CHIP service currently expects the firmware version to be in the format
85 * {MAJOR_VERSION}.0d{MINOR_VERSION}
87 #ifndef CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
88 #define CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION "0.1ALPHA"
91 * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
93 * Enable support for Chip-over-BLE (CHIPoBLE).
95 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
98 * CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC
100 * Enables synchronizing the device's real time clock with a remote Chip Time service
101 * using the Chip Time Sync protocol.
103 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
106 * CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER
108 * Enables the use of a hard-coded default serial number if none
109 * is found in Chip NV storage.
111 #define CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER "TEST_SN"
114 * CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
116 * Enable recording UTC timestamps.
118 #define CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1
121 * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
123 * A size, in bytes, of the individual debug event logging buffer.
125 #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)