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

[Silabs]configured the higher clock rate for 917 soc #28867

Merged
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
2 changes: 1 addition & 1 deletion examples/platform/silabs/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ extern "C" {
#include <stdint.h>

#ifdef SIWX_917
#include "RS1xxxx_9117.h"
#include "si91x_device.h"
extern uint32_t SystemCoreClock;
#else // For EFR32
#include "RTE_Components.h"
Expand Down
12 changes: 9 additions & 3 deletions src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ void RSI_Board_LED_Set(int, bool);
void RSI_Board_LED_Toggle(int);
void RSI_Wakeupsw_config(void);
void RSI_Wakeupsw_config_gpio0(void);
void sl_system_init(void);
void soc_pll_config(void);
}

#if SILABS_LOG_ENABLED
Expand All @@ -48,11 +50,15 @@ SilabsPlatform::SilabsButtonCb SilabsPlatform::mButtonCallback = nullptr;
CHIP_ERROR SilabsPlatform::Init(void)
{
mButtonCallback = nullptr;
RSI_Wakeupsw_config();

RSI_Wakeupsw_config_gpio0();
sl_system_init();

// Configuration the clock rate
soc_pll_config();

sl_platform_init(); // platform initialization for wifi-sdk 3.0
// BTN0 and BTN1 init
RSI_Wakeupsw_config();
RSI_Wakeupsw_config_gpio0();

#if SILABS_LOG_ENABLED
silabsInitLog();
Expand Down