Skip to content

Commit

Permalink
configured the higher clock rate for 917 soc (#28867)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirsrin authored and pull[bot] committed Sep 28, 2023
1 parent 4af2578 commit 1291797
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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

0 comments on commit 1291797

Please sign in to comment.