Skip to content

Commit

Permalink
Fix OT Cli init and Power Manager req (#217)
Browse files Browse the repository at this point in the history
* Fix custom cli init

* Fix OT EM1 req

* fix tab
  • Loading branch information
mkardous-silabs authored Jul 31, 2024
1 parent 9084b6f commit 3c313dd
Show file tree
Hide file tree
Showing 30 changed files with 136 additions and 15 deletions.
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg24/BRD2601B/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg24/BRD2601B/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg24/BRD2703A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg24/BRD2703A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg24/BRD4186A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg24/BRD4186A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg24/BRD4186C/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg24/BRD4186C/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg24/BRD4187A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg24/BRD4187A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg24/BRD4187C/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
9 changes: 8 additions & 1 deletion matter/efr32/efr32mg24/BRD4187C/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);

sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg26/BRD2608A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg26/BRD2608A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg26/BRD4116A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg26/BRD4116A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg26/BRD4117A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg26/BRD4117A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/efr32mg26/BRD4118A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/efr32mg26/BRD4118A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/mgm24/BRD2704A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/mgm24/BRD2704A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/mgm24/BRD4316A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/mgm24/BRD4316A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/mgm24/BRD4317A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/mgm24/BRD4317A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
2 changes: 2 additions & 0 deletions matter/efr32/mgm24/BRD4318A/autogen/sl_ot_custom_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ const uint8_t sl_ot_custom_commands_count = OT_ARRAY_LENGTH(sl_ot_custom_command

void sl_ot_custom_cli_init(void)
{
#if defined(CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI) && CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
IgnoreError(otCliSetUserCommands(sl_ot_custom_commands, sl_ot_custom_commands_count, NULL));
#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI
}
8 changes: 7 additions & 1 deletion matter/efr32/mgm24/BRD4318A/autogen/sl_ot_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
******************************************************************************/

#include "sl_ot_init.h"
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"

void sl_ot_init(void)
{
sl_ot_create_instance();
sl_ot_sleep_init();
sl_ot_sleep_init();

// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
sl_ot_cli_init();
sl_ot_custom_cli_init();
}
Loading

0 comments on commit 3c313dd

Please sign in to comment.