Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / pigweed-app / efr32 / include / CHIPProjectConfig.h
1 /*
2  *
3  *    Copyright (c) 2021 Project CHIP Authors
4  *    All rights reserved.
5  *
6  *    Licensed under the Apache License, Version 2.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  *
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19 /**
20  *    @file
21  *          Example project configuration file for CHIP.
22  *
23  *          This is a place to put application or project-specific overrides
24  *          to the default configuration values for general CHIP features.
25  *
26  */
27
28 #pragma once
29
30 /**
31  * CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY
32  *
33  * Enables the use of a hard-coded default Chip device id and credentials if no device id
34  * is found in Chip NV storage.
35  *
36  * This option is for testing only and should be disabled in production releases.
37  */
38 #define CHIP_DEVICE_CONFIG_ENABLE_TEST_DEVICE_IDENTITY 34
39
40 // Use a default pairing code if one hasn't been provisioned in flash.
41 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 12345678
42 #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
43
44 // For convenience, Chip Security Test Mode can be enabled and the
45 // requirement for authentication in various protocols can be disabled.
46 //
47 //    WARNING: These options make it possible to circumvent basic Chip security functionality,
48 //    including message encryption. Because of this they MUST NEVER BE ENABLED IN PRODUCTION BUILDS.
49 //
50 #define CHIP_CONFIG_SECURITY_TEST_MODE 0
51 #define CHIP_CONFIG_REQUIRE_AUTH 1
52
53 /**
54  * CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID
55  *
56  * 0x235A: Chip's Vendor Id.
57  */
58 #define CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID 0x235A
59
60 /**
61  * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID
62  *
63  * 0x5350: EFR32 pigweed-app
64  */
65 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x5350
66
67 /**
68  * CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION
69  *
70  * The product revision number assigned to device or product by the device vendor.  This
71  * number is scoped to the device product id, and typically corresponds to a revision of the
72  * physical device, a change to its packaging, and/or a change to its marketing presentation.
73  * This value is generally *not* incremented for device software revisions.
74  */
75 #define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_REVISION 1
76
77 /**
78  * CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
79  *
80  * A string identifying the firmware revision running on the device.
81  * CHIP service currently expects the firmware version to be in the format
82  * {MAJOR_VERSION}.0d{MINOR_VERSION}
83  */
84 #ifndef CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION
85 #define CHIP_DEVICE_CONFIG_DEVICE_FIRMWARE_REVISION "0.1ALPHA"
86 #endif
87 /**
88  * CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
89  *
90  * Enable support for Chip-over-BLE (CHIPoBLE).
91  */
92 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
93
94 /**
95  * CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC
96  *
97  * Enables synchronizing the device's real time clock with a remote Chip Time service
98  * using the Chip Time Sync protocol.
99  */
100 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
101
102 /**
103  * CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER
104  *
105  * Enables the use of a hard-coded default serial number if none
106  * is found in Chip NV storage.
107  */
108 #define CHIP_DEVICE_CONFIG_USE_TEST_SERIAL_NUMBER "DUMMY_SN"
109
110 /**
111  * CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS
112  *
113  * Enable recording UTC timestamps.
114  */
115 #define CHIP_CONFIG_EVENT_LOGGING_UTC_TIMESTAMPS 1
116
117 /**
118  * CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE
119  *
120  * A size, in bytes, of the individual debug event logging buffer.
121  */
122 #define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)
123
124 /**
125  * CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL
126  *
127  * The interval (in units of 0.625ms) at which the device will send BLE advertisements while
128  * in fast advertising mode.
129  *
130  * 40 (25ms).
131  */
132 #define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL 40
133
134 /**
135  * CHIP_DEVICE_CONFIG_BLE_SLOW_ADVERTISING_INTERVAL
136  *
137  * The interval (in units of 0.625ms) at which the device will send BLE advertisements while
138  * in slow advertisement mode.
139  *
140  * 800 (500ms).
141  */
142 #define CHIP_DEVICE_CONFIG_BLE_SLOW_ADVERTISING_INTERVAL 800
143
144 /**
145  * CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_TIMEOUT
146  *
147  * The amount of time in miliseconds after which BLE should change his advertisements
148  * from fast interval to slow interval.
149  *
150  * 30000 (30 secondes).
151  */
152 #define CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_TIMEOUT (30 * 1000)
153
154 /**
155  * CHIP_DEVICE_CONFIG_BLE_ADVERTISING_TIMEOUT
156  *
157  * The amount of time in miliseconds after which BLE advertisement should be disabled, counting
158  * from the moment of slow advertisement commencement.
159  *
160  * Defaults to 9000000 (15 minutes).
161  */
162 #define CHIP_DEVICE_CONFIG_BLE_ADVERTISING_TIMEOUT (15 * 60 * 1000)