Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread Changes Regenerate #216

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
lpbeliveau-silabs marked this conversation as resolved.
Show resolved Hide resolved
#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
lpbeliveau-silabs marked this conversation as resolved.
Show resolved Hide resolved
#define SL_CATALOG_SEGGER_RTT_PRESENT
#define SL_CATALOG_BTN0_PRESENT
#define SL_CATALOG_SIMPLE_BUTTON_PRESENT
Expand Down
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();
}

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();
lpbeliveau-silabs marked this conversation as resolved.
Show resolved Hide resolved
}
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
44 changes: 44 additions & 0 deletions matter/efr32/efr32mg24/BRD2601B/config/sl_gp_interface_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/***************************************************************************//**
* @file
* @brief OpenThread Green Power configuration file.
*******************************************************************************
* # 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.
*
******************************************************************************/

//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------

// <e> Rx Offset time
// The rx offset time for the bidirectional message.
//
#define GP_RX_OFFSET_IN_MICRO_SECONDS 21000
// </e>

// <e> TX Timeout
// Tx timeout after which the gp outgoing packet is invalid.
//
#define GP_TX_MAX_TIMEOUT_IN_MICRO_SECONDS 5000000
// </e>
// <<< end of configuration section >>>
Loading
Loading