Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / platform / Tizen / CHIPDevicePlatformConfig.h
1 /*
2  *
3  *    Copyright (c) 2020 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 /**
19  *    @file
20  *          Platform-specific configuration overrides for the chip Device Layer
21  *          on Linux platforms.
22  */
23
24 #pragma once
25
26 // ==================== Platform Adaptations ====================
27
28 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
29 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
30
31 #ifndef CHIP_DEVICE_CONFIG_ENABLE_THREAD
32 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD CHIP_ENABLE_OPENTHREAD
33 #endif
34
35 #ifndef CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
36 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 0
37 #endif
38
39 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
40
41 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_CRIT_EIDC_KEY 2
42 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_PROD_EIDC_KEY 3
43 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_INFO_EIDC_KEY 4
44 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_DEBUG_EIDC_KEY 5
45
46 // ========== Platform-specific Configuration =========
47
48 // These are configuration options that are unique to Linux platforms.
49 // These can be overridden by the application as needed.
50
51 /**
52  * @def CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
53  *
54  * The priority of the SoftDevice observer event handler registered by the
55  * CHIP BleLayer.
56  */
57 #ifndef CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
58 #define CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY 3
59 #endif // CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
60
61 /**
62  * @def CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
63  *
64  * The SoftDevice BLE connection configuration tag used by the CHIP
65  * BleLayer.
66  */
67 #ifndef CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
68 #define CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG 1
69 #endif // CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
70
71 // ========== Platform-specific Configuration Overrides =========
72
73 #ifndef CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
74 #define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 8192
75 #endif // CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
76
77 #ifndef CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE
78 #define CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE 8192
79 #endif // CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE
80
81 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_TELEMETRY 0
82 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY 0
83 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY_FULL 0
84
85 // TODO: CHIP has redesigned the crypto interface, pending on the final version of CHIP HASH APIs
86 #define CHIP_DEVICE_CONFIG_LOG_PROVISIONING_HASH 0