Imported more library files

Not compiling currently
This commit is contained in:
2025-04-12 23:37:19 +01:00
parent 264a3462e0
commit 9d06f983af
2518 changed files with 1021900 additions and 52 deletions

View File

@@ -0,0 +1,181 @@
/*
*
* Copyright (c) 2020 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* \@file
* This file defines constants and macros for introspecting and
* manipulating CHIP versions.
*
* !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!!
*
* DO NOT EDIT THIS FILE! This file is automatically-generated by
* the '${program}' script.
*
* The constants and macros defined here may be used to, for ,
* example, conditionally-compile older, newer, or changed CHIP
* APIs based on the CHIP version. For example:
*
* \@code
* #if CHIP_VERSION_CODE >= CHIP_VERSION_CODE_ENCODE(1, 5, 0)
* ...
* #else
* ...
* #endif
* \@endcode
*
*/
#ifndef CHIP_VERSION_H_
#define CHIP_VERSION_H_
#define _CHIP_VERSION_CODE_MAJOR_WIDTH 8
#define _CHIP_VERSION_CODE_MINOR_WIDTH 8
#define _CHIP_VERSION_CODE_PATCH_WIDTH 8
#define _CHIP_VERSION_CODE_MAJOR_MASK ((1 << _CHIP_VERSION_CODE_MAJOR_WIDTH) - 1)
#define _CHIP_VERSION_CODE_MINOR_MASK ((1 << _CHIP_VERSION_CODE_MINOR_WIDTH) - 1)
#define _CHIP_VERSION_CODE_PATCH_MASK ((1 << _CHIP_VERSION_CODE_PATCH_WIDTH) - 1)
#define _CHIP_VERSION_CODE_MAJOR_SHIFT 24
#define _CHIP_VERSION_CODE_MINOR_SHIFT 16
#define _CHIP_VERSION_CODE_PATCH_SHIFT 8
/**
* \@def CHIP_VERSION_CODE_ENCODE(major, minor, patch)
*
* \@brief
* Encode a CHIP version code from its constituent \@a major, \@a minor, and \@a patch
* components.
*
* This macro may be used in conjunction with CHIP_VERSION_CODE to, for
* example, conditionally-compile older, newer, or changed CHIP APIs based
* on the CHIP version. For example:
*
* \@code
* #if CHIP_VERSION_CODE >= CHIP_VERSION_CODE_ENCODE(1, 5, 0)
* ...
* #else
* ...
* #endif
* \@endcode
*
*/
#define CHIP_VERSION_CODE_ENCODE(major, minor, patch) \
((((major) & _CHIP_VERSION_CODE_MAJOR_MASK) << _CHIP_VERSION_CODE_MAJOR_SHIFT) | \
(((minor) & _CHIP_VERSION_CODE_MINOR_MASK) << _CHIP_VERSION_CODE_MINOR_SHIFT) | \
(((patch) & _CHIP_VERSION_CODE_PATCH_MASK) << _CHIP_VERSION_CODE_PATCH_SHIFT))
/**
* \@def CHIP_VERSION_CODE_DECODE_MAJOR(code)
*
* \@brief
* Decode a CHIP major version component from a CHIP version \@a code.
*
*/
#define CHIP_VERSION_CODE_DECODE_MAJOR(code) (((code) >> _CHIP_VERSION_CODE_MAJOR_SHIFT) & _CHIP_VERSION_CODE_MAJOR_MASK)
/**
* \@def CHIP_VERSION_CODE_DECODE_MINOR(code)
*
* \@brief
* Decode a CHIP minor version component from a CHIP version \@a code.
*
*/
#define CHIP_VERSION_CODE_DECODE_MINOR(code) (((code) >> _CHIP_VERSION_CODE_MINOR_SHIFT) & _CHIP_VERSION_CODE_MINOR_MASK)
/**
* \@def CHIP_VERSION_CODE_DECODE_PATCH(code)
*
* \@brief
* Decode a CHIP patch version component from a CHIP version \@a code.
*
*/
#define CHIP_VERSION_CODE_DECODE_PATCH(code) (((code) >> _CHIP_VERSION_CODE_PATCH_SHIFT) & _CHIP_VERSION_CODE_PATCH_MASK)
/**
* \@def CHIP_VERSION_MAJOR
*
* \@brief
* The CHIP version major component, as an unsigned integer.
*
*/
#define CHIP_VERSION_MAJOR 0
/**
* \@def CHIP_VERSION_MINOR
*
* \@brief
* The CHIP version minor component, as an unsigned integer.
*
*/
#define CHIP_VERSION_MINOR 0
/**
* \@def CHIP_VERSION_PATCH
*
* \@brief
* The CHIP version patch component, as an unsigned integer.
*
*/
#define CHIP_VERSION_PATCH 0
/**
* \@def CHIP_VERSION_EXTRA
*
* \@brief
* The CHIP version extra component, as a quoted C string.
*
*/
#define CHIP_VERSION_EXTRA ""
/**
* \@def CHIP_VERSION_STRING
*
* \@brief
* The CHIP version, as a quoted C string.
*
*/
#define CHIP_VERSION_STRING "0.0.0"
/**
* \@def CHIP_VERSION_CODE
*
* \@brief
* The CHIP version, including the major, minor, and patch components,
* encoded as an unsigned integer.
*
* This macro may be used in conjunction with CHIP_VERSION_CODE_ENCODE
* to, for example, conditionally-compile older, newer, or changed CHIP
* APIs based on the CHIP version. For example:
*
* \@code
* #if CHIP_VERSION_CODE >= CHIP_VERSION_CODE_ENCODE(1, 5, 0)
* ...
* #else
* ...
* #endif
* \@endcode
*
*/
#define CHIP_VERSION_CODE CHIP_VERSION_CODE_ENCODE( \
CHIP_VERSION_MAJOR, \
CHIP_VERSION_MINOR, \
CHIP_VERSION_PATCH \
)
#endif /* CHIP_VERSION_H_ */

View File

@@ -0,0 +1,4 @@
// Generated by write_build_time_header.py
#pragma once
#define CHIP_DEVICE_CONFIG_FIRMWARE_BUILD_TIME_MATTER_EPOCH_S 750270532

View File

@@ -0,0 +1,9 @@
// Generated by write_buildconfig_header.py
// From "//third_party/connectedhomeip/src/access:gen_access_buildconfig"
#ifndef ACCESS_ACCESSBUILDCONFIG_H_
#define ACCESS_ACCESSBUILDCONFIG_H_
#define CHIP_CONFIG_USE_ACCESS_RESTRICTIONS 0
#endif // ACCESS_ACCESSBUILDCONFIG_H_

View File

@@ -0,0 +1,260 @@
/*
*
* Copyright (c) 2020-2022 Project CHIP Authors
* Copyright (c) 2019 Google LLC.
* Copyright (c) 2013-2017 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/**
* @file
* ASN.1 Object ID Definitions
*
* !!! WARNING !!! WARNING !!! WARNING !!!
*
* DO NOT EDIT THIS FILE! This file is generated by the
* gen-oid-table.py script.
*
* To make changes, edit the script and re-run it to generate
* this file.
*
*/
#pragma once
#include <cstdint>
namespace chip {
namespace ASN1 {
enum OIDCategory
{
kOIDCategory_PubKeyAlgo = 0x0100,
kOIDCategory_SigAlgo = 0x0200,
kOIDCategory_AttributeType = 0x0300,
kOIDCategory_EllipticCurve = 0x0400,
kOIDCategory_Extension = 0x0500,
kOIDCategory_KeyPurpose = 0x0600,
kOIDCategory_NotSpecified = 0,
kOIDCategory_Unknown = 0x0F00,
kOIDCategory_Mask = 0x0F00
};
typedef uint16_t OID;
enum
{
kOID_PubKeyAlgo_ECPublicKey = 0x0101,
kOID_SigAlgo_ECDSAWithSHA256 = 0x0201,
kOID_AttributeType_CommonName = 0x0301,
kOID_AttributeType_Surname = 0x0302,
kOID_AttributeType_SerialNumber = 0x0303,
kOID_AttributeType_CountryName = 0x0304,
kOID_AttributeType_LocalityName = 0x0305,
kOID_AttributeType_StateOrProvinceName = 0x0306,
kOID_AttributeType_OrganizationName = 0x0307,
kOID_AttributeType_OrganizationalUnitName = 0x0308,
kOID_AttributeType_Title = 0x0309,
kOID_AttributeType_Name = 0x030A,
kOID_AttributeType_GivenName = 0x030B,
kOID_AttributeType_Initials = 0x030C,
kOID_AttributeType_GenerationQualifier = 0x030D,
kOID_AttributeType_DNQualifier = 0x030E,
kOID_AttributeType_Pseudonym = 0x030F,
kOID_AttributeType_DomainComponent = 0x0310,
kOID_AttributeType_MatterNodeId = 0x0311,
kOID_AttributeType_MatterFirmwareSigningId = 0x0312,
kOID_AttributeType_MatterICACId = 0x0313,
kOID_AttributeType_MatterRCACId = 0x0314,
kOID_AttributeType_MatterFabricId = 0x0315,
kOID_AttributeType_MatterCASEAuthTag = 0x0316,
kOID_EllipticCurve_prime256v1 = 0x0401,
kOID_Extension_BasicConstraints = 0x0501,
kOID_Extension_KeyUsage = 0x0502,
kOID_Extension_ExtendedKeyUsage = 0x0503,
kOID_Extension_SubjectKeyIdentifier = 0x0504,
kOID_Extension_AuthorityKeyIdentifier = 0x0505,
kOID_Extension_CSRRequest = 0x0506,
kOID_KeyPurpose_ServerAuth = 0x0601,
kOID_KeyPurpose_ClientAuth = 0x0602,
kOID_KeyPurpose_CodeSigning = 0x0603,
kOID_KeyPurpose_EmailProtection = 0x0604,
kOID_KeyPurpose_TimeStamping = 0x0605,
kOID_KeyPurpose_OCSPSigning = 0x0606,
kOID_NotSpecified = 0,
kOID_Unknown = 0xFFFF,
kOID_EnumMask = 0x00FF
};
struct OIDTableEntry
{
OID EnumVal;
const uint8_t *EncodedOID;
uint16_t EncodedOIDLen;
};
struct OIDNameTableEntry
{
OID EnumVal;
const char *Name;
};
extern const OIDTableEntry sOIDTable[];
extern const OIDNameTableEntry sOIDNameTable[];
extern const size_t sOIDTableSize;
#ifdef ASN1_DEFINE_OID_TABLE
static const uint8_t sOID_PubKeyAlgo_ECPublicKey[] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01 };
static const uint8_t sOID_SigAlgo_ECDSAWithSHA256[] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x04, 0x03, 0x02 };
static const uint8_t sOID_AttributeType_CommonName[] = { 0x55, 0x04, 0x03 };
static const uint8_t sOID_AttributeType_Surname[] = { 0x55, 0x04, 0x04 };
static const uint8_t sOID_AttributeType_SerialNumber[] = { 0x55, 0x04, 0x05 };
static const uint8_t sOID_AttributeType_CountryName[] = { 0x55, 0x04, 0x06 };
static const uint8_t sOID_AttributeType_LocalityName[] = { 0x55, 0x04, 0x07 };
static const uint8_t sOID_AttributeType_StateOrProvinceName[] = { 0x55, 0x04, 0x08 };
static const uint8_t sOID_AttributeType_OrganizationName[] = { 0x55, 0x04, 0x0A };
static const uint8_t sOID_AttributeType_OrganizationalUnitName[] = { 0x55, 0x04, 0x0B };
static const uint8_t sOID_AttributeType_Title[] = { 0x55, 0x04, 0x0C };
static const uint8_t sOID_AttributeType_Name[] = { 0x55, 0x04, 0x29 };
static const uint8_t sOID_AttributeType_GivenName[] = { 0x55, 0x04, 0x2A };
static const uint8_t sOID_AttributeType_Initials[] = { 0x55, 0x04, 0x2B };
static const uint8_t sOID_AttributeType_GenerationQualifier[] = { 0x55, 0x04, 0x2C };
static const uint8_t sOID_AttributeType_DNQualifier[] = { 0x55, 0x04, 0x2E };
static const uint8_t sOID_AttributeType_Pseudonym[] = { 0x55, 0x04, 0x41 };
static const uint8_t sOID_AttributeType_DomainComponent[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x19 };
static const uint8_t sOID_AttributeType_MatterNodeId[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0xA2, 0x7C, 0x01, 0x01 };
static const uint8_t sOID_AttributeType_MatterFirmwareSigningId[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0xA2, 0x7C, 0x01, 0x02 };
static const uint8_t sOID_AttributeType_MatterICACId[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0xA2, 0x7C, 0x01, 0x03 };
static const uint8_t sOID_AttributeType_MatterRCACId[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0xA2, 0x7C, 0x01, 0x04 };
static const uint8_t sOID_AttributeType_MatterFabricId[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0xA2, 0x7C, 0x01, 0x05 };
static const uint8_t sOID_AttributeType_MatterCASEAuthTag[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0xA2, 0x7C, 0x01, 0x06 };
static const uint8_t sOID_EllipticCurve_prime256v1[] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x03, 0x01, 0x07 };
static const uint8_t sOID_Extension_BasicConstraints[] = { 0x55, 0x1D, 0x13 };
static const uint8_t sOID_Extension_KeyUsage[] = { 0x55, 0x1D, 0x0F };
static const uint8_t sOID_Extension_ExtendedKeyUsage[] = { 0x55, 0x1D, 0x25 };
static const uint8_t sOID_Extension_SubjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E };
static const uint8_t sOID_Extension_AuthorityKeyIdentifier[] = { 0x55, 0x1D, 0x23 };
static const uint8_t sOID_Extension_CSRRequest[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E };
static const uint8_t sOID_KeyPurpose_ServerAuth[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01 };
static const uint8_t sOID_KeyPurpose_ClientAuth[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02 };
static const uint8_t sOID_KeyPurpose_CodeSigning[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03 };
static const uint8_t sOID_KeyPurpose_EmailProtection[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04 };
static const uint8_t sOID_KeyPurpose_TimeStamping[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08 };
static const uint8_t sOID_KeyPurpose_OCSPSigning[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09 };
const OIDTableEntry sOIDTable[] =
{
{ kOID_PubKeyAlgo_ECPublicKey, sOID_PubKeyAlgo_ECPublicKey, sizeof(sOID_PubKeyAlgo_ECPublicKey) },
{ kOID_SigAlgo_ECDSAWithSHA256, sOID_SigAlgo_ECDSAWithSHA256, sizeof(sOID_SigAlgo_ECDSAWithSHA256) },
{ kOID_AttributeType_CommonName, sOID_AttributeType_CommonName, sizeof(sOID_AttributeType_CommonName) },
{ kOID_AttributeType_Surname, sOID_AttributeType_Surname, sizeof(sOID_AttributeType_Surname) },
{ kOID_AttributeType_SerialNumber, sOID_AttributeType_SerialNumber, sizeof(sOID_AttributeType_SerialNumber) },
{ kOID_AttributeType_CountryName, sOID_AttributeType_CountryName, sizeof(sOID_AttributeType_CountryName) },
{ kOID_AttributeType_LocalityName, sOID_AttributeType_LocalityName, sizeof(sOID_AttributeType_LocalityName) },
{ kOID_AttributeType_StateOrProvinceName, sOID_AttributeType_StateOrProvinceName, sizeof(sOID_AttributeType_StateOrProvinceName) },
{ kOID_AttributeType_OrganizationName, sOID_AttributeType_OrganizationName, sizeof(sOID_AttributeType_OrganizationName) },
{ kOID_AttributeType_OrganizationalUnitName, sOID_AttributeType_OrganizationalUnitName, sizeof(sOID_AttributeType_OrganizationalUnitName) },
{ kOID_AttributeType_Title, sOID_AttributeType_Title, sizeof(sOID_AttributeType_Title) },
{ kOID_AttributeType_Name, sOID_AttributeType_Name, sizeof(sOID_AttributeType_Name) },
{ kOID_AttributeType_GivenName, sOID_AttributeType_GivenName, sizeof(sOID_AttributeType_GivenName) },
{ kOID_AttributeType_Initials, sOID_AttributeType_Initials, sizeof(sOID_AttributeType_Initials) },
{ kOID_AttributeType_GenerationQualifier, sOID_AttributeType_GenerationQualifier, sizeof(sOID_AttributeType_GenerationQualifier) },
{ kOID_AttributeType_DNQualifier, sOID_AttributeType_DNQualifier, sizeof(sOID_AttributeType_DNQualifier) },
{ kOID_AttributeType_Pseudonym, sOID_AttributeType_Pseudonym, sizeof(sOID_AttributeType_Pseudonym) },
{ kOID_AttributeType_DomainComponent, sOID_AttributeType_DomainComponent, sizeof(sOID_AttributeType_DomainComponent) },
{ kOID_AttributeType_MatterNodeId, sOID_AttributeType_MatterNodeId, sizeof(sOID_AttributeType_MatterNodeId) },
{ kOID_AttributeType_MatterFirmwareSigningId, sOID_AttributeType_MatterFirmwareSigningId, sizeof(sOID_AttributeType_MatterFirmwareSigningId) },
{ kOID_AttributeType_MatterICACId, sOID_AttributeType_MatterICACId, sizeof(sOID_AttributeType_MatterICACId) },
{ kOID_AttributeType_MatterRCACId, sOID_AttributeType_MatterRCACId, sizeof(sOID_AttributeType_MatterRCACId) },
{ kOID_AttributeType_MatterFabricId, sOID_AttributeType_MatterFabricId, sizeof(sOID_AttributeType_MatterFabricId) },
{ kOID_AttributeType_MatterCASEAuthTag, sOID_AttributeType_MatterCASEAuthTag, sizeof(sOID_AttributeType_MatterCASEAuthTag) },
{ kOID_EllipticCurve_prime256v1, sOID_EllipticCurve_prime256v1, sizeof(sOID_EllipticCurve_prime256v1) },
{ kOID_Extension_BasicConstraints, sOID_Extension_BasicConstraints, sizeof(sOID_Extension_BasicConstraints) },
{ kOID_Extension_KeyUsage, sOID_Extension_KeyUsage, sizeof(sOID_Extension_KeyUsage) },
{ kOID_Extension_ExtendedKeyUsage, sOID_Extension_ExtendedKeyUsage, sizeof(sOID_Extension_ExtendedKeyUsage) },
{ kOID_Extension_SubjectKeyIdentifier, sOID_Extension_SubjectKeyIdentifier, sizeof(sOID_Extension_SubjectKeyIdentifier) },
{ kOID_Extension_AuthorityKeyIdentifier, sOID_Extension_AuthorityKeyIdentifier, sizeof(sOID_Extension_AuthorityKeyIdentifier) },
{ kOID_Extension_CSRRequest, sOID_Extension_CSRRequest, sizeof(sOID_Extension_CSRRequest) },
{ kOID_KeyPurpose_ServerAuth, sOID_KeyPurpose_ServerAuth, sizeof(sOID_KeyPurpose_ServerAuth) },
{ kOID_KeyPurpose_ClientAuth, sOID_KeyPurpose_ClientAuth, sizeof(sOID_KeyPurpose_ClientAuth) },
{ kOID_KeyPurpose_CodeSigning, sOID_KeyPurpose_CodeSigning, sizeof(sOID_KeyPurpose_CodeSigning) },
{ kOID_KeyPurpose_EmailProtection, sOID_KeyPurpose_EmailProtection, sizeof(sOID_KeyPurpose_EmailProtection) },
{ kOID_KeyPurpose_TimeStamping, sOID_KeyPurpose_TimeStamping, sizeof(sOID_KeyPurpose_TimeStamping) },
{ kOID_KeyPurpose_OCSPSigning, sOID_KeyPurpose_OCSPSigning, sizeof(sOID_KeyPurpose_OCSPSigning) },
{ kOID_NotSpecified, NULL, 0 }
};
const size_t sOIDTableSize = sizeof(sOIDTable) / sizeof(OIDTableEntry);
#endif // ASN1_DEFINE_OID_TABLE
#ifdef ASN1_DEFINE_OID_NAME_TABLE
const OIDNameTableEntry sOIDNameTable[] =
{
{ kOID_PubKeyAlgo_ECPublicKey, "ECPublicKey" },
{ kOID_SigAlgo_ECDSAWithSHA256, "ECDSAWithSHA256" },
{ kOID_AttributeType_CommonName, "CommonName" },
{ kOID_AttributeType_Surname, "Surname" },
{ kOID_AttributeType_SerialNumber, "SerialNumber" },
{ kOID_AttributeType_CountryName, "CountryName" },
{ kOID_AttributeType_LocalityName, "LocalityName" },
{ kOID_AttributeType_StateOrProvinceName, "StateOrProvinceName" },
{ kOID_AttributeType_OrganizationName, "OrganizationName" },
{ kOID_AttributeType_OrganizationalUnitName, "OrganizationalUnitName" },
{ kOID_AttributeType_Title, "Title" },
{ kOID_AttributeType_Name, "Name" },
{ kOID_AttributeType_GivenName, "GivenName" },
{ kOID_AttributeType_Initials, "Initials" },
{ kOID_AttributeType_GenerationQualifier, "GenerationQualifier" },
{ kOID_AttributeType_DNQualifier, "DNQualifier" },
{ kOID_AttributeType_Pseudonym, "Pseudonym" },
{ kOID_AttributeType_DomainComponent, "DomainComponent" },
{ kOID_AttributeType_MatterNodeId, "MatterNodeId" },
{ kOID_AttributeType_MatterFirmwareSigningId, "MatterFirmwareSigningId" },
{ kOID_AttributeType_MatterICACId, "MatterICACId" },
{ kOID_AttributeType_MatterRCACId, "MatterRCACId" },
{ kOID_AttributeType_MatterFabricId, "MatterFabricId" },
{ kOID_AttributeType_MatterCASEAuthTag, "MatterCASEAuthTag" },
{ kOID_EllipticCurve_prime256v1, "prime256v1" },
{ kOID_Extension_BasicConstraints, "BasicConstraints" },
{ kOID_Extension_KeyUsage, "KeyUsage" },
{ kOID_Extension_ExtendedKeyUsage, "ExtendedKeyUsage" },
{ kOID_Extension_SubjectKeyIdentifier, "SubjectKeyIdentifier" },
{ kOID_Extension_AuthorityKeyIdentifier, "AuthorityKeyIdentifier" },
{ kOID_Extension_CSRRequest, "CSRRequest" },
{ kOID_KeyPurpose_ServerAuth, "ServerAuth" },
{ kOID_KeyPurpose_ClientAuth, "ClientAuth" },
{ kOID_KeyPurpose_CodeSigning, "CodeSigning" },
{ kOID_KeyPurpose_EmailProtection, "EmailProtection" },
{ kOID_KeyPurpose_TimeStamping, "TimeStamping" },
{ kOID_KeyPurpose_OCSPSigning, "OCSPSigning" },
{ kOID_NotSpecified, NULL }
};
#endif // ASN1_DEFINE_OID_NAME_TABLE
} // namespace ASN1
} // namespace chip

View File

@@ -0,0 +1,15 @@
#ifndef BLE_BLEBUILDCONFIG_H_
#define BLE_BLEBUILDCONFIG_H_
#include "sl_component_catalog.h"
#if defined(SL_CATALOG_MATTER_BLE_PRESENT)
#define CONFIG_NETWORK_LAYER_BLE 1
#else
#define CONFIG_NETWORK_LAYER_BLE 0
#endif
#define CHIP_ENABLE_CHIPOBLE_TEST 0
#define BLE_PROJECT_CONFIG_INCLUDE <CHIPProjectConfig.h>
#define BLE_PLATFORM_CONFIG_INCLUDE <platform/silabs/BlePlatformConfig.h>
#endif // BLE_BLEBUILDCONFIG_H_

View File

@@ -0,0 +1,41 @@
#ifndef CORE_CHIPBUILDCONFIG_H_
#define CORE_CHIPBUILDCONFIG_H_
#define SL_MATTER_LOG_NONE 0
#define SL_MATTER_LOG_ERROR 1
#define SL_MATTER_LOG_PROGRESS 3
#define SL_MATTER_LOG_DETAIL 4
#define SL_MATTER_LOG_AUTOMATION 5
#include "sl_matter_config.h"
#define CHIP_FUZZING_ENABLED 0
#define CHIP_CONFIG_TEST 0
#define CHIP_ERROR_LOGGING (SL_MATTER_LOG_LEVEL >= SL_MATTER_LOG_ERROR)
#define CHIP_PROGRESS_LOGGING (SL_MATTER_LOG_LEVEL >= SL_MATTER_LOG_PROGRESS)
#define CHIP_DETAIL_LOGGING (SL_MATTER_LOG_LEVEL >= SL_MATTER_LOG_DETAIL)
#define CHIP_AUTOMATION_LOGGING (SL_MATTER_LOG_LEVEL >= SL_MATTER_LOG_AUTOMATION)
#define CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE 256
#define CHIP_PW_TOKENIZER_LOGGING 0
#define CHIP_USE_PW_LOGGING 0
#define CHIP_CONFIG_SHORT_ERROR_STR 1 // always 1 on embedded
#define CHIP_CONFIG_ENABLE_ARG_PARSER SL_MATTER_CLI_ARG_PARSER
#define CHIP_TARGET_STYLE_UNIX 0
#define CHIP_TARGET_STYLE_EMBEDDED 1
#define CHIP_CONFIG_MEMORY_MGMT_MALLOC 0
#define HAVE_MALLOC 0
#define HAVE_FREE 0
#define HAVE_NEW 0
#define CHIP_CONFIG_MEMORY_MGMT_PLATFORM 1 // always use "platform" allocator
#define CHIP_CONFIG_MEMORY_DEBUG_CHECKS 0
#define CHIP_CONFIG_MEMORY_DEBUG_DMALLOC 0
#define CHIP_CONFIG_PROVIDE_OBSOLESCENT_INTERFACES 0
#define CHIP_CONFIG_TRANSPORT_TRACE_ENABLED 0
#define CHIP_CONFIG_TRANSPORT_PW_TRACE_ENABLED 0
#define CHIP_CONFIG_MINMDNS_DYNAMIC_OPERATIONAL_RESPONDER_LIST 0
#define CHIP_CONFIG_MINMDNS_MAX_PARALLEL_RESOLVES 2
#endif // CORE_CHIPBUILDCONFIG_H_

View File

@@ -0,0 +1,10 @@
#ifndef CRYPTO_CRYPTOBUILDCONFIG_H_
#define CRYPTO_CRYPTOBUILDCONFIG_H_
#define CHIP_CRYPTO_MBEDTLS 0
#define CHIP_CRYPTO_OPENSSL 0
#define CHIP_WITH_OPENSSL 0
#define CHIP_CRYPTO_HSM 0
#define CHIP_CRYPTO_HSM_NXP 0
#endif // CRYPTO_CRYPTOBUILDCONFIG_H_

View File

@@ -0,0 +1,19 @@
#ifndef INET_INETBUILDCONFIG_H_
#define INET_INETBUILDCONFIG_H_
// TODO: enable IPv4 and TCP if using wifi
#define INET_CONFIG_TEST 0
#define INET_CONFIG_ENABLE_UDP_ENDPOINT 1
#define HAVE_LWIP_RAW_BIND_NETIF 1
#define INET_PROJECT_CONFIG_INCLUDE <CHIPProjectConfig.h>
#define INET_PLATFORM_CONFIG_INCLUDE <platform/silabs/InetPlatformConfig.h>
#define INET_CONFIG_ENABLE_IPV4 0
#define INET_CONFIG_ENABLE_TCP_ENDPOINT 0
#ifndef SL_WIFI
#define INET_TCP_END_POINT_IMPL_CONFIG_FILE <inet/TCPEndPointImplOpenThread.h>
#define INET_UDP_END_POINT_IMPL_CONFIG_FILE <inet/UDPEndPointImplOpenThread.h>
#else
#define INET_TCP_END_POINT_IMPL_CONFIG_FILE <inet/TCPEndPointImplLwIP.h>
#define INET_UDP_END_POINT_IMPL_CONFIG_FILE <inet/UDPEndPointImplLwIP.h>
#endif // SL_WIFI
#endif // INET_INETBUILDCONFIG_H_

View File

@@ -0,0 +1,10 @@
// Generated by write_buildconfig_header.py
// From "//third_party/connectedhomeip/src/lwip:gen_lwip_buildconfig"
#ifndef LWIP_LWIP_BUILDCONFIG_H_
#define LWIP_LWIP_BUILDCONFIG_H_
#define HAVE_LWIP_UDP_BIND_NETIF 1
#define LWIP_DEBUG 1
#endif // LWIP_LWIP_BUILDCONFIG_H_

View File

@@ -0,0 +1,13 @@
#ifndef MATTER_TRACING_BUILD_CONFIG_H_
#define MATTER_TRACING_BUILD_CONFIG_H_
// <<< Use Configuration Wizard in Context Menu >>>
// <q MATTER_TRACING_ENABLED> Matter Report on Entering Active
// <i> Default: 0
#define MATTER_TRACING_ENABLED 0
// <<< end of configuration section >>>
#endif // MATTER_TRACING_BUILD_CONFIG_H_

View File

@@ -0,0 +1,100 @@
/*
* Copyright (c) 2016, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @file
* @brief
* This file defines the platform-specific functions needed by OpenThread's example applications.
*/
#ifndef OPENTHREAD_SYSTEM_H_
#define OPENTHREAD_SYSTEM_H_
#include <openthread/instance.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* This function performs all platform-specific initialization of OpenThread's drivers.
*
* @note This function is not called by the OpenThread library. Instead, the system/RTOS should call this function
* when initialization of OpenThread's drivers is most appropriate.
*
* @param[in] argc Number of arguments in @p argv.
* @param[in] argv Argument vector.
*
*/
void otSysInit(int argc, char *argv[]);
/**
* This function performs all platform-specific deinitialization for OpenThread's drivers.
*
* @note This function is not called by the OpenThread library. Instead, the system/RTOS should call this function
* when deinitialization of OpenThread's drivers is most appropriate.
*
*/
void otSysDeinit(void);
/**
* This function returns true if a pseudo-reset was requested.
*
* In such a case, the main loop should shut down and re-initialize the OpenThread instance.
*
* @note This function is not called by the OpenThread library. Instead, the system/RTOS should call this function
* in the main loop to determine when to shut down and re-initialize the OpenThread instance.
*
*/
bool otSysPseudoResetWasRequested(void);
/**
* This function performs all platform-specific processing for OpenThread's example applications.
*
* @note This function is not called by the OpenThread library. Instead, the system/RTOS should call this function
* in the main loop when processing OpenThread's drivers is most appropriate.
*
* @param[in] aInstance The OpenThread instance structure.
*
*/
void otSysProcessDrivers(otInstance *aInstance);
/**
* This function is called whenever platform drivers needs processing.
*
* @note This function is not handled by the OpenThread library. Instead, the system/RTOS should handle this function
* and schedule a call to `otSysProcessDrivers()`.
*
*/
extern void otSysEventSignalPending(void);
#ifdef __cplusplus
} // end of extern "C"
#endif
#endif // OPENTHREAD_SYSTEM_H_

View File

@@ -0,0 +1,51 @@
#ifndef PLATFORM_CHIPDEVICEBUILDCONFIG_H_
#define PLATFORM_CHIPDEVICEBUILDCONFIG_H_
// stack lock tracking config options
#define SL_MATTER_STACK_LOCK_TRACKING_NONE 0
#define SL_MATTER_STACK_LOCK_TRACKING_LOG 1
#define SL_MATTER_STACK_LOCK_TRACKING_FATAL 2
#include "sl_matter_config.h"
// inferred options
#include "sl_component_catalog.h"
// TODO: infer from wifi stack component
#define SL_MATTER_ENABLE_WIFI 0
// TODO: infer from OTA requestor component (split from generated matter efr32 platform component)
#if defined(SILABS_OTA_ENABLED)
#define SL_MATTER_ENABLE_OTA 1
#else
#define SL_MATTER_ENABLE_OTA 0
#endif
#if defined(SL_CATALOG_OPENTHREAD_STACK_PRESENT) || SL_OPENTHREAD_CERT_LIB
#define CHIP_ENABLE_OPENTHREAD 1
#if defined(OPENTHREAD_FTD)
#define CHIP_DEVICE_CONFIG_THREAD_FTD 1
#else
#define CHIP_DEVICE_CONFIG_THREAD_FTD 0
#endif
#endif
#define CHIP_DEVICE_CONFIG_ENABLE_WPA SL_MATTER_ENABLE_WIFI
#define CHIP_WITH_GIO SL_MATTER_ENABLE_WIFI
#define OPENTHREAD_CONFIG_ENABLE_TOBLE 0
//#define CHIP_STACK_LOCK_TRACKING_ENABLED (SL_MATTER_STACK_LOCK_TRACKING_MODE != SL_MATTER_STACK_LOCK_TRACKING_NONE)
#define CHIP_STACK_LOCK_TRACKING_ERROR_FATAL (SL_MATTER_STACK_LOCK_TRACKING_MODE == SL_MATTER_STACK_LOCK_TRACKING_FATAL)
#define CHIP_DEVICE_CONFIG_RUN_AS_ROOT 1
#define CHIP_DISABLE_PLATFORM_KVS 0
#define CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR SL_MATTER_ENABLE_OTA
#define CHIP_DEVICE_PROJECT_CONFIG_INCLUDE <CHIPProjectConfig.h>
#define CHIP_DEVICE_PLATFORM_CONFIG_INCLUDE <platform/silabs/CHIPDevicePlatformConfig.h>
#define CHIP_DEVICE_LAYER_TARGET_EFR32 1
#define CHIP_DEVICE_LAYER_TARGET silabs
#define CHIP_DEVICE_CONFIG_THREAD_NETWORK_ENDPOINT_ID 0
// Enable default/generic test-mode CommissionableDataProvider in GenericConfigurationManagerImpl
// === FOR TRANSITION UNTIL ALL EXAMPLES PROVIDE THEIR OWN ===
#define CHIP_USE_TRANSITIONAL_COMMISSIONABLE_DATA_PROVIDER 0
#endif // PLATFORM_CHIPDEVICEBUILDCONFIG_H_

View File

@@ -0,0 +1,7 @@
// Generated by write_buildconfig_header.py
// From "//third_party/connectedhomeip/src/setup_payload:gen_additional_data_payload_buildconfig"
#ifndef SETUP_PAYLOAD_CHIPADDITIONALDATAPAYLOADBUILDCONFIG_H_
#define SETUP_PAYLOAD_CHIPADDITIONALDATAPAYLOADBUILDCONFIG_H_
#endif // SETUP_PAYLOAD_CHIPADDITIONALDATAPAYLOADBUILDCONFIG_H_

View File

@@ -0,0 +1,40 @@
// Generated by write_buildconfig_header.py
// From "//third_party/connectedhomeip/src/system:gen_system_buildconfig"
#ifndef SYSTEM_SYSTEMBUILDCONFIG_H_
#define SYSTEM_SYSTEMBUILDCONFIG_H_
#define CONFIG_DEVICE_LAYER 1
#define CHIP_SYSTEM_CONFIG_TEST 0
#define CHIP_WITH_NLFAULTINJECTION 0
#define CHIP_SYSTEM_CONFIG_USE_DISPATCH 0
#ifndef SL_WIFI
#define CHIP_SYSTEM_CONFIG_USE_LWIP 0
#define CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT 1
#else
#define CHIP_SYSTEM_CONFIG_USE_LWIP 1
#define CHIP_SYSTEM_CONFIG_USE_OPEN_THREAD_ENDPOINT 0
#endif // SL_WIFI
#define CHIP_SYSTEM_CONFIG_USE_SOCKETS 0
#define CHIP_SYSTEM_CONFIG_USE_NETWORK_FRAMEWORK 0
#define CHIP_SYSTEM_CONFIG_POSIX_LOCKING 0
#define CHIP_SYSTEM_CONFIG_FREERTOS_LOCKING 1
#define CHIP_SYSTEM_CONFIG_MBED_LOCKING 0
#define CHIP_SYSTEM_CONFIG_NO_LOCKING 0
#define CHIP_SYSTEM_CONFIG_PROVIDE_STATISTICS 1
#define HAVE_CLOCK_GETTIME 1
#define HAVE_CLOCK_SETTIME 1
#define HAVE_GETTIMEOFDAY 0
#define HAVE_SYS_TIME_H 1
#define HAVE_NETINET_ICMP6_H 1
#define HAVE_ICMP6_FILTER 1
#define CONFIG_HAVE_VCBPRINTF 0
#define CONFIG_HAVE_VSNPRINTF_EX 0
#define HAVE_SYS_SOCKET_H 0
#define CHIP_PROJECT_CONFIG_INCLUDE <CHIPProjectConfig.h>
#define CHIP_PLATFORM_CONFIG_INCLUDE <platform/silabs/CHIPPlatformConfig.h>
#define SYSTEM_PROJECT_CONFIG_INCLUDE <CHIPProjectConfig.h>
#define SYSTEM_PLATFORM_CONFIG_INCLUDE <platform/silabs/SystemPlatformConfig.h>
#define CHIP_SYSTEM_LAYER_IMPL_CONFIG_FILE <system/SystemLayerImplFreeRTOS.h>
#endif // SYSTEM_SYSTEMBUILDCONFIG_H_