Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / platform / K32W / CHIPDevicePlatformConfig.h
1 /*
2  *
3  *    Copyright (c) 2020 Project CHIP Authors
4  *    Copyright (c) 2020 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  *          Platform-specific configuration overrides for the chip Device Layer
23  *          on K32W platforms using the NXP SDK.
24  */
25
26 #pragma once
27
28 // ==================== Platform Adaptations ====================
29
30 #define K32W_NO_ERRORS 0
31 #define K32W_ENTRY_NOT_FOUND 1
32
33 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
34 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
35
36 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD 1
37
38 #ifndef CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
39 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE 1
40 #endif
41
42 #ifndef CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
43 #define CHIP_DEVICE_CHIP0BLE_DEBUG 0
44 #endif
45
46 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
47
48 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_CRIT_EIDC_KEY 2
49 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_PROD_EIDC_KEY 3
50 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_INFO_EIDC_KEY 4
51 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_DEBUG_EIDC_KEY 5
52
53 // ========== Platform-specific Configuration =========
54
55 // These are configuration options that are unique to the K32W platform.
56 // These can be overridden by the application as needed.
57
58 /**
59  * @def CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
60  *
61  * The priority of the SoftDevice observer event handler registered by the
62  * chip BleLayer.
63  */
64 #ifndef CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
65 #define CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY 3
66 #endif // CHIP_DEVICE_LAYER_BLE_OBSERVER_PRIORITY
67
68 /**
69  * @def CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
70  *
71  * The SoftDevice BLE connection configuration tag used by the chip
72  * BleLayer.
73  */
74 #ifndef CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
75 #define CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG 1
76 #endif // CHIP_DEVICE_LAYER_BLE_CONN_CFG_TAG
77
78 // ========== Platform-specific Configuration Overrides =========
79 #ifndef CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
80 #define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 8192
81 #endif // CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
82
83 #ifndef CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE
84 #define CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE 8192
85 #endif // CHIP_DEVICE_CONFIG_THREAD_TASK_STACK_SIZE
86
87 #ifndef CHIP_DEVICE_CONFIG_BLE_APP_TASK_NAME
88 #define CHIP_DEVICE_CONFIG_BLE_APP_TASK_NAME "BLE App Task"
89 #endif // CHIP_DEVICE_CONFIG_BLE_APP_TASK_NAME
90
91 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_TELEMETRY 0
92 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY 1
93 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY_FULL 0
94 #define CHIP_DEVICE_CONFIG_LOG_PROVISIONING_HASH 0
95
96 #define CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED 1
97
98 #define CHIP_DEVICE_CONFIG_CHIPOBLE_ENABLE_ADVERTISING_AUTOSTART 0
99
100 #define CHIP_DEVICE_CONFIG_ENABLE_PAIRING_AUTOSTART 0