-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Regenerated all matter board to make use of changes in the OT sdk * Reverted styling and applied comments
- Loading branch information
1 parent
bc79221
commit 9084b6f
Showing
142 changed files
with
12,560 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
matter/efr32/efr32mg24/BRD2601B/autogen/sl_ot_custom_cli.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
44
matter/efr32/efr32mg24/BRD2601B/config/sl_gp_interface_config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 >>> |
Oops, something went wrong.