Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / platform / cc13x2_26x2 / CHIPPlatformConfig.h
1 /*
2  *
3  *    Copyright (c) 2020 Project CHIP Authors
4  *    Copyright (c) 2020 Texas Instruments Incorporated
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  *          Platform-specific configuration overrides for CHIP on
22  *          the Texas Instruments CC1352 platform.
23  *
24  * NOTE: currently a bare-bones implementation to allow for building.
25  */
26
27 #pragma once
28
29 #include <stdint.h>
30
31 // ==================== General Platform Adaptations ====================
32
33 #define CHIP_CONFIG_ERROR_TYPE uint32_t
34 #define CHIP_CONFIG_NO_ERROR (0)
35
36 #define ASN1_CONFIG_ERROR_TYPE uint32_t
37 #define ASN1_CONFIG_NO_ERROR (0)
38
39 #define ChipDie() assert()
40
41 #define CHIP_CONFIG_PERSISTED_STORAGE_KEY_TYPE uint16_t
42 #define CHIP_CONFIG_PERSISTED_STORAGE_ENC_MSG_CNTR_ID 1
43 #define CHIP_CONFIG_PERSISTED_STORAGE_MAX_KEY_LENGTH 2
44
45 #define CHIP_CONFIG_LIFETIIME_PERSISTED_COUNTER_KEY 0x01
46
47 // ==================== Security Adaptations ====================
48
49 #define CHIP_CONFIG_USE_OPENSSL_ECC 0
50 #define CHIP_CONFIG_USE_MICRO_ECC 1
51
52 #define CHIP_CONFIG_HASH_IMPLEMENTATION_OPENSSL 0
53 #define CHIP_CONFIG_HASH_IMPLEMENTATION_MINCRYPT 1
54 #define CHIP_CONFIG_HASH_IMPLEMENTATION_MBEDTLS 0
55 #define CHIP_CONFIG_HASH_IMPLEMENTATION_PLATFORM 0
56
57 #define CHIP_CONFIG_AES_IMPLEMENTATION_OPENSSL 0
58 #define CHIP_CONFIG_AES_IMPLEMENTATION_AESNI 0
59 #define CHIP_CONFIG_AES_IMPLEMENTATION_MBEDTLS 1
60 #define CHIP_CONFIG_AES_IMPLEMENTATION_PLATFORM 0
61
62 #define CHIP_CONFIG_RNG_IMPLEMENTATION_OPENSSL 0
63 #define CHIP_CONFIG_RNG_IMPLEMENTATION_CHIPDRBG 1
64 #define CHIP_CONFIG_RNG_IMPLEMENTATION_PLATFORM 0
65
66 #define CHIP_CONFIG_ENABLE_PASE_INITIATOR 0
67 #define CHIP_CONFIG_ENABLE_PASE_RESPONDER 1
68 #define CHIP_CONFIG_ENABLE_CASE_INITIATOR 1
69
70 #define CHIP_CONFIG_SUPPORT_PASE_CONFIG0 0
71 #define CHIP_CONFIG_SUPPORT_PASE_CONFIG1 0
72 #define CHIP_CONFIG_SUPPORT_PASE_CONFIG2 0
73 #define CHIP_CONFIG_SUPPORT_PASE_CONFIG3 0
74 #define CHIP_CONFIG_SUPPORT_PASE_CONFIG4 1
75
76 #define CHIP_CONFIG_ENABLE_KEY_EXPORT_INITIATOR 0
77
78 #define CHIP_CONFIG_ENABLE_PROVISIONING_BUNDLE_SUPPORT 0
79
80 // ==================== General Configuration Overrides ====================
81
82 /* none yet */