Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / lighting-app / 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 #ifndef CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE
43 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 12345678
44 #endif
45 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
46
47 // For convenience, Chip Security Test Mode can be enabled and the
48 // requirement for authentication in various protocols can be disabled.
49 //
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.
52 //
53 #define CHIP_CONFIG_SECURITY_TEST_MODE 0
54 #define CHIP_CONFIG_REQUIRE_AUTH 1
55
56 /**
57  * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
58  *
59  * 0x235A: Chip's Vendor Id.
60  */
61 #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x235A
62
63 /**
64  * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
65  *
66  * 0x534C: EFR32 lighting-app
67  */
68 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x534C
69
70 /**
71  * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION
72  *
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.
77  */
78 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION 1
79
80 /**
81  * CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
82  *
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}
86  */
87 #ifndef CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
88 #define CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION "0.1ALPHA"
89 #endif
90 /**
91  * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
92  *
93  * Enable support for Chip-over-BLE (CHIPoBLE).
94  */
95 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
96
97 /**
98  * CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC
99  *
100  * Enables synchronizing the device's real time clock with a remote Chip Time service
101  * using the Chip Time Sync protocol.
102  */
103 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
104
105 /**
106  * CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER
107  *
108  * Enables the use of a hard-coded default serial number if none
109  * is found in Chip NV storage.
110  */
111 #define CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER "TEST_SN"
112
113 /**
114  * CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
115  *
116  * Enable recording UTC timestamps.
117  */
118 #define CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1
119
120 /**
121  * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
122  *
123  * A size, in bytes, of the individual debug event logging buffer.
124  */
125 #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)