Skip to content

Commit

Permalink
Regenerated all matter board to make use of changes in the OT sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Jul 16, 2024
1 parent bc79221 commit 56241b1
Show file tree
Hide file tree
Showing 271 changed files with 19,240 additions and 939 deletions.
16 changes: 8 additions & 8 deletions matter/efr32/efr32mg24/BRD2601B/autogen/gatt_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ extern "C" {

extern const sli_bt_gattdb_t gattdb;

#define gattdb_generic_attribute 1
#define gattdb_service_changed_char 3
#define gattdb_database_hash 6
#define gattdb_client_support_features 8
#define gattdb_device_name 11
#define gattdb_CHIPoBLEChar_Rx 23
#define gattdb_CHIPoBLEChar_Tx 25
#define gattdb_CHIPoBLEChar_C3 28
#define gattdb_generic_attribute 1
#define gattdb_service_changed_char 3
#define gattdb_database_hash 6
#define gattdb_client_support_features 8
#define gattdb_device_name 11
#define gattdb_CHIPoBLEChar_Rx 23
#define gattdb_CHIPoBLEChar_Tx 25
#define gattdb_CHIPoBLEChar_C3 28

#if __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@
#define SL_CATALOG_IOSTREAM_PRESENT
#define SL_CATALOG_MEMORY_MANAGER_PRESENT
#define SL_CATALOG_MEMORY_PROFILER_API_PRESENT
#define SL_CATALOG_MPU_PRESENT
#ifdef CONFIG_USE_EXTERNAL_FLASH
#define SL_CATALOG_MX25_FLASH_SHUTDOWN_USART_PRESENT
#endif // CONFIG_USE_EXTERNAL_FLASH
#define SL_CATALOG_NVM3_PRESENT
#define SL_CATALOG_OT_GP_INTERFACE_PRESENT
#define SL_CATALOG_OPENTHREAD_STACK_PRESENT
#define SL_CATALOG_POWER_MANAGER_PRESENT
#define SL_CATALOG_PSA_CRYPTO_PRESENT
#define SL_CATALOG_RAIL_LIB_PRESENT
#define SL_CATALOG_RAIL_UTIL_PTI_PRESENT
#define SL_CATALOG_SE_MANAGER_PRESENT
#define SL_CATALOG_SECURITY_MANAGER_PRESENT
#define SL_CATALOG_SEGGER_RTT_PRESENT
#define SL_CATALOG_BTN0_PRESENT
#define SL_CATALOG_SIMPLE_BUTTON_PRESENT
Expand All @@ -53,8 +57,6 @@
#define SL_CATALOG_SIMPLE_LED_LED1_PRESENT
#define SL_CATALOG_SLEEPTIMER_PRESENT
#define SL_CATALOG_SLI_PROTOCOL_CRYPTO_PRESENT
#if defined(CONFIG_ENABLE_UART)
#define SL_CATALOG_UARTDRV_EUSART_PRESENT
#endif

#endif // SL_COMPONENT_CATALOG_H
10 changes: 9 additions & 1 deletion matter/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@
#include "pa_conversions_efr32.h"
#include "sl_rail_util_power_manager_init.h"
#include "sl_rail_util_pti.h"
#include "sl_rail_util_rssi.h"
#include "sl_board_control.h"
#include "sl_bt_rtos_adaptation.h"
#include "platform-efr32.h"
#include "sl_sleeptimer.h"
#include "sl_mpu.h"
#include "gpiointerrupt.h"
#if defined(USE_TEMP_SENSOR)
#include "sl_i2cspm_instances.h"
#endif
#include "sl_iostream_rtt.h"
#include "sl_mbedtls.h"
#include "nvm3_default.h"
#include "sl_ot_rtos_adaptation.h"
#include "sl_simple_button_instances.h"
#include "sl_simple_led_instances.h"
#if defined(CONFIG_ENABLE_UART)
Expand Down Expand Up @@ -71,6 +75,7 @@ void sl_service_init(void)
sl_board_configure_vcom();
sl_sleeptimer_init();
sl_hfxo_manager_init();
sl_mpu_disable_execute_from_ram();
sl_mbedtls_init();
psa_crypto_init();
sli_aes_seed_mask();
Expand All @@ -82,15 +87,18 @@ void sl_stack_init(void)
sl_rail_util_pa_init();
sl_rail_util_power_manager_init();
sl_rail_util_pti_init();
sl_rail_util_rssi_init();
sl_bt_rtos_init();
sl_ot_sys_init();
}

void sl_internal_app_init(void)
{
sl_ot_rtos_stack_init();
sl_ot_rtos_app_init();
}

void sl_iostream_init_instances(void)
{
sl_iostream_rtt_init();
}

1 change: 1 addition & 0 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sl_event_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ void sl_driver_init(void);
void sl_service_init(void);
void sl_stack_init(void);
void sl_internal_app_init(void);
void sl_iostream_init_instances(void);

#endif // SL_EVENT_HANDLER_H
61 changes: 61 additions & 0 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/***************************************************************************//**
* @file
* @brief Custom CLI support for OpenThread
*******************************************************************************
* # License
* <b>Copyright 2024 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#include <openthread/cli.h>
#include <common/code_utils.hpp>
#include <string.h>
#include "sl_ot_custom_cli.h"

/*******************************************************************************
* Example syntax (.slcc or .slcp) for populating this file:
*
* template_contribution:
* - name: sl_ot_cli_command # Register a command
* value:
* name: status # Name of command
* handler: status_command # Function to be called. Must be defined
*
******************************************************************************/
extern otError bleCommand(void *aContext, uint8_t aArgsLength, char *aArgs[]);

otCliCommand sl_ot_custom_commands[] = {
#ifdef SL_OPENTHREAD_BLE_CLI_ENABLE
{"ble", bleCommand},
#endif

};

// This is needed because `sizeof` is calculated at compile time and can't be calculated outside of this source file.
const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_commands);

void sl_ot_custom_cli_init(void)
{
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
}
39 changes: 39 additions & 0 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/***************************************************************************//**
* @file
* @brief OpenThread initialization.
*******************************************************************************
* # License
* <b>Copyright 2024 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#include "sl_ot_init.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
41 changes: 41 additions & 0 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/***************************************************************************//**
* @file
* @brief This generated header includes declaration of all functions required
* during initialization that must be defined by the OpenThread application.
*******************************************************************************
* # License
* <b>Copyright 2024 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#ifndef SL_OT_INIT_H
#define SL_OT_INIT_H

void sl_ot_init(void);
extern void sl_ot_create_instance(void);
extern void sl_ot_sleep_init(void);
extern void sl_ot_cli_init(void);
extern void sl_ot_custom_cli_init(void);

#endif // SL_OT_INIT_H
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/***************************************************************************//**
/***************************************************************************/ /**
* @file
* @brief LED Driver Instances
*******************************************************************************
Expand Down Expand Up @@ -42,7 +42,7 @@ extern const sl_led_t sl_led_led1;

extern const sl_led_t *sl_simple_led_array[];

#define SL_SIMPLE_LED_COUNT 2
#define SL_SIMPLE_LED_COUNT 2
#define SL_SIMPLE_LED_INSTANCE(n) (sl_simple_led_array[n])

void sl_simple_led_init_instances(void);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
#ifndef SLI_MBEDTLS_CONFIG_AUTOGEN_H
#define SLI_MBEDTLS_CONFIG_AUTOGEN_H


// Added definition check because of DIC specific configs
#ifndef MBEDTLS_MPI_MAX_SIZE
#define MBEDTLS_MPI_MAX_SIZE 32
#endif


#define MBEDTLS_AES_C
#define MBEDTLS_ASN1_PARSE_C
#define MBEDTLS_ASN1_WRITE_C
Expand Down Expand Up @@ -45,9 +43,4 @@
#define MBEDTLS_PSA_CRYPTO_DRIVERS
#define MBEDTLS_PSA_CRYPTO_STORAGE_C






#endif // SLI_MBEDTLS_CONFIG_AUTOGEN_H
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
// #define MBEDTLS_PSA_BUILTIN_ALG_CMAC 1
// #define MBEDTLS_PSA_BUILTIN_ALG_PBKDF2_AES_CMAC_PRF_128 1


#endif // SLI_PSA_BUILTIN_CONFIG_AUTOGEN_H
36 changes: 18 additions & 18 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sli_psa_config_autogen.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
#ifndef SLI_PSA_CONFIG_AUTOGEN_H
#define SLI_PSA_CONFIG_AUTOGEN_H

#define PSA_WANT_KEY_TYPE_AES 1
#define PSA_WANT_ALG_CCM 1
#define PSA_WANT_ALG_ECB_NO_PADDING 1
#define PSA_WANT_ALG_CMAC 1
#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1
#define PSA_WANT_KEY_TYPE_AES 1
#define PSA_WANT_ALG_CCM 1
#define PSA_WANT_ALG_ECB_NO_PADDING 1
#define PSA_WANT_ALG_CMAC 1
#define PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT 1
#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1
#define PSA_WANT_ECC_SECP_R1_256 1
#define PSA_WANT_ALG_ECDH 1
#define PSA_WANT_ALG_ECDSA 1
#define PSA_WANT_ALG_HKDF 1
#define PSA_WANT_ALG_HMAC 1
#define PSA_WANT_KEY_TYPE_HMAC 1
#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1
#define PSA_WANT_ALG_SHA_256 1
#define PSA_WANT_ALG_TLS12_PRF 1
#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
#define PSA_WANT_ECC_SECP_R1_256 1
#define PSA_WANT_ALG_ECDH 1
#define PSA_WANT_ALG_ECDSA 1
#define PSA_WANT_ALG_HKDF 1
#define PSA_WANT_ALG_HMAC 1
#define PSA_WANT_KEY_TYPE_HMAC 1
#define PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 1
#define PSA_WANT_ALG_SHA_256 1
#define PSA_WANT_ALG_TLS12_PRF 1
#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG

#define MBEDTLS_PSA_KEY_SLOT_COUNT (2 + 15 + 1 + SL_PSA_KEY_USER_SLOT_COUNT)
Expand Down
Loading

0 comments on commit 56241b1

Please sign in to comment.