Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / platform / nrfconnect / 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 nRF Connect SDK platform.
22  */
23
24 #pragma once
25
26 #include "autoconf.h"
27
28 // ==================== Platform Adaptations ====================
29
30 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
31 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
32
33 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD CONFIG_NET_L2_OPENTHREAD
34 #define CHIP_DEVICE_CONFIG_THREAD_FTD CONFIG_OPENTHREAD_FTD
35
36 #define CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE CONFIG_BT
37
38 #define CHIP_DEVICE_CONFIG_ENABLE_CHIP_TIME_SERVICE_TIME_SYNC 0
39
40 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_CRIT_EIDC_KEY 2
41 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_PROD_EIDC_KEY 3
42 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_INFO_EIDC_KEY 4
43 #define CHIP_DEVICE_CONFIG_PERSISTED_STORAGE_DEBUG_EIDC_KEY 5
44
45 // ========== Platform-specific Configuration =========
46
47 // These are configuration options that are unique to Zephyr platforms.
48 // These can be overridden by the application as needed.
49
50 // ========== Platform-specific Configuration Overrides =========
51
52 #ifndef CHIP_DEVICE_CONFIG_CHIP_TASK_PRIORITY
53 #define CHIP_DEVICE_CONFIG_CHIP_TASK_PRIORITY (K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1))
54 #endif // CHIP_DEVICE_CONFIG_CHIP_TASK_PRIORITY
55
56 #ifndef CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
57 #define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 8192
58 #endif // CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
59
60 #define CHIP_DEVICE_CONFIG_ENABLE_WIFI_TELEMETRY 0
61 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY 0
62 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_TELEMETRY_FULL 0
63 #define CHIP_DEVICE_CONFIG_LOG_PROVISIONING_HASH 0
64
65 #define CHIP_DEVICE_CONFIG_CHIPOBLE_DISABLE_ADVERTISING_WHEN_PROVISIONED CONFIG_CHIP_DISABLE_CHIPOBLE_ADVERTISING_WHEN_PROVISIONED
66
67 #define CHIP_DEVICE_CONFIG_CHIPOBLE_ENABLE_ADVERTISING_AUTOSTART 0
68
69 #ifndef CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART
70 #define CHIP_DEVICE_CONFIG_ENABLE_PAIRING_AUTOSTART 0
71 #else
72 #define CHIP_DEVICE_CONFIG_ENABLE_PAIRING_AUTOSTART CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART
73 #endif // CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART
74
75 #ifdef CONFIG_CHIP_ENABLE_DNSSD_SRP
76 #define CHIP_DEVICE_CONFIG_ENABLE_MDNS 1
77 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT 1
78 #endif // CONFIG_CHIP_ENABLE_DNSSD_SRP