Skip to content

Commit

Permalink
adding the lock and unlock chip stack and some build fixes for 917 SoC (
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs authored and pull[bot] committed Apr 25, 2023
1 parent 52adad8 commit 1243423
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions examples/platform/silabs/SiWx917/BaseApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ CHIP_ERROR BaseApplication::Init(Identify * identifyObj)
SILABS_LOG("APP: Done WiFi Init");
/* We will init server when we get IP */

chip::DeviceLayer::PlatformMgr().LockChipStack();
sWiFiNetworkCommissioningInstance.Init();
chip::DeviceLayer::PlatformMgr().UnlockChipStack();

#endif

// Create FreeRTOS sw timer for Function Selection.
Expand Down
3 changes: 3 additions & 0 deletions examples/platform/silabs/efr32/BaseApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ CHIP_ERROR BaseApplication::Init(Identify * identifyObj)
SILABS_LOG("APP: Done WiFi Init");
/* We will init server when we get IP */

chip::DeviceLayer::PlatformMgr().LockChipStack();
sWiFiNetworkCommissioningInstance.Init();
chip::DeviceLayer::PlatformMgr().UnlockChipStack();

#endif

// Create FreeRTOS sw timer for Function Selection.
Expand Down
4 changes: 2 additions & 2 deletions src/platform/silabs/platformAbstraction/WiseMCU_SPAM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void SilabsPlatform::InitLed(void)
SilabsPlatformAbstractionBase::InitLed();
}

CHIP_ERROR SilabsPlatform::SetLed(bool state, uint8_t led) override
CHIP_ERROR SilabsPlatform::SetLed(bool state, uint8_t led)
{
// TODO add range check
RSI_Board_LED_Set(led, state);
Expand All @@ -54,7 +54,7 @@ bool SilabsPlatform::GetLedState(uint8_t led)
return SilabsPlatformAbstractionBase::GetLedState(led);
}

CHIP_ERROR SilabsPlatform::ToggleLed(uint8_t led) override
CHIP_ERROR SilabsPlatform::ToggleLed(uint8_t led)
{
// TODO add range check
RSI_Board_LED_Toggle(led);
Expand Down

0 comments on commit 1243423

Please sign in to comment.