Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / persistent-storage / efr32 / include / CHIPProjectConfig.h
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 /**
21  *    @file
22  *          Example project configuration file for CHIP.
23  *
24  *          This is a place to put application or project-specific overrides
25  *          to the default configuration values for general CHIP features.
26  *
27  */
28
29 #pragma once
30
31 /**
32  * CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY
33  *
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.
36  *
37  * This option is for testing only and should be disabled in production releases.
38  */
39 #define CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY 34
40
41 // Use a default pairing code if one hasn't been provisioned in flash.
42 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 12345678
43 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
44
45 // For convenience, Chip Security Test Mode can be enabled and the
46 // requirement for authentication in various protocols can be disabled.
47 //
48 //    WARNING: These options make it possible to circumvent basic Chip security functionality,
49 //    including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
50 //
51 #define CHIP_CONFIG_SECURITY_TEST_MODE 0
52 #define CHIP_CONFIG_REQUIRE_AUTH 1
53
54 /**
55  * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
56  *
57  * 0x235A: Chip's Vendor Id.
58  */
59 #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x235A
60
61 /**
62  * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
63  *
64  * 0xFE00: SDK Sample Light Resource
65  */
66 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0xFD00
67
68 /**
69  * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION
70  *
71  * The product revision number assigned to device or product by the device vendor.  This
72  * number is scoped to the device product id, and typically corresponds to a revision of the
73  * physical device, a change to its packaging, and/or a change to its marketing presentation.
74  * This value is generally *not* incremented for device software revisions.
75  */
76 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION 1
77
78 /**
79  * CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
80  *
81  * A string identifying the firmware revision running on the device.
82  * CHIP service currently expects the firmware version to be in the format
83  * {MAJOR_VERSION}.0d{MINOR_VERSION}
84  */
85 #ifndef CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
86 #define CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION "0.1ALPHA"
87 #endif
88 /**
89  * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
90  *
91  * Enable support for Chip-over-BLE (CHIPoBLE).
92  */
93 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
94
95 /**
96  * CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC
97  *
98  * Enables synchronizing the device's real time clock with a remote Chip Time service
99  * using the Chip Time Sync protocol.
100  */
101 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
102
103 /**
104  * CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER
105  *
106  * Enables the use of a hard-coded default serial number if none
107  * is found in Chip NV storage.
108  */
109 #define CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER "DUMMY_SN"
110
111 /**
112  * CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
113  *
114  * Enable recording UTC timestamps.
115  */
116 #define CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1
117
118 /**
119  * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
120  *
121  * A size, in bytes, of the individual debug event logging buffer.
122  */
123 #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)