Skip to content

Commit c64bd54

Browse files
[SL-UP] Revert the Task priorities for the 917SoC (#538)
1 parent 4f36b42 commit c64bd54

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

examples/platform/silabs/MatterConfig.cpp

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -175,20 +175,13 @@ namespace {
175175

176176
constexpr uint32_t kMainTaskStackSize = (1024 * 5);
177177
// Task is dynamically allocated with max priority. This task gets deleted once the inits are completed.
178-
constexpr osThreadAttr_t kMainTaskAttr = {
179-
.name = "main",
180-
.attr_bits = osThreadDetached,
181-
.cb_mem = NULL,
182-
.cb_size = 0U,
183-
.stack_mem = NULL,
184-
.stack_size = kMainTaskStackSize,
185-
#ifdef SLI_SI91X_MCU_INTERFACE
186-
.priority = osPriorityRealtime4,
187-
#else
188-
.priority = osPriorityRealtime7
189-
190-
#endif // SLI_SI91X_MCU_INTERFACE
191-
};
178+
constexpr osThreadAttr_t kMainTaskAttr = { .name = "main",
179+
.attr_bits = osThreadDetached,
180+
.cb_mem = NULL,
181+
.cb_size = 0U,
182+
.stack_mem = NULL,
183+
.stack_size = kMainTaskStackSize,
184+
.priority = osPriorityRealtime7 };
192185
osThreadId_t sMainTaskHandle;
193186
static chip::DeviceLayer::DeviceInfoProviderImpl gExampleDeviceInfoProvider;
194187

third_party/silabs/SiWx917_sdk.gni

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,6 @@ template("siwx917_sdk") {
265265
"SLI_SI91X_LWIP_HOSTED_NETWORK_STACK=1",
266266
"__FREERTOS_OS_WISECONNECT=1",
267267
"SL_SI91X_SOC_MODE=1",
268-
269-
# TODO: This is a workaround for the init issue with the SiWx917
270-
"SL_WLAN_EVENT_THREAD_PRIORITY=osPriorityRealtime6",
271-
"SL_WLAN_COMMAND_ENGINE_THREAD_PRIORITY=osPriorityRealtime5",
272268
]
273269

274270
if (silabs_log_enabled && chip_logging) {

0 commit comments

Comments
 (0)