3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2020 Texas Instruments Incorporated
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * Platform-specific configuration overrides for CHIP on
22 * the Texas Instruments CC1352 platform.
24 * NOTE: currently a bare-bones implementation to allow for building.
31 // ==================== General Platform Adaptations ====================
33 #define CHIP_CONFIG_ERROR_TYPE uint32_t
34 #define CHIP_CONFIG_NO_ERROR (0)
36 #define ASN1_CONFIG_ERROR_TYPE uint32_t
37 #define ASN1_CONFIG_NO_ERROR (0)
39 #define ChipDie() assert()
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
45 #define CHIP_CONFIG_LIFETIIME_PERSISTED_COUNTER_KEY 0x01
47 // ==================== Security Adaptations ====================
49 #define CHIP_CONFIG_USE_OPENSSL_ECC 0
50 #define CHIP_CONFIG_USE_MICRO_ECC 1
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
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
62 #define CHIP_CONFIG_RNG_IMPLEMENTATION_OPENSSL 0
63 #define CHIP_CONFIG_RNG_IMPLEMENTATION_CHIPDRBG 1
64 #define CHIP_CONFIG_RNG_IMPLEMENTATION_PLATFORM 0
66 #define CHIP_CONFIG_ENABLE_PASE_INITIATOR 0
67 #define CHIP_CONFIG_ENABLE_PASE_RESPONDER 1
68 #define CHIP_CONFIG_ENABLE_CASE_INITIATOR 1
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
76 #define CHIP_CONFIG_ENABLE_KEY_EXPORT_INITIATOR 0
78 #define CHIP_CONFIG_ENABLE_PROVISIONING_BUNDLE_SUPPORT 0
80 // ==================== General Configuration Overrides ====================