-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bugfix/task priority #151
base: master
Are you sure you want to change the base?
Bugfix/task priority #151
Conversation
chirag-silabs
commented
Aug 27, 2024
d7747ca
to
02b2556
Compare
0f91778
to
e33de46
Compare
break; | ||
|
||
case DeviceEventType::kThreadConnectivityChange: | ||
case DeviceEventType::kInternetConnectivityChange: { | ||
#ifdef DIC_ENABLE | ||
VerifyOrReturn(event->InternetConnectivityChange.IPv4 == kConnectivity_Established); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when DIC_ENABLE
will be set to 1 this will cause the code to malfunction, better to replace with if in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved it at the end
return RSI_ERROR_INVALID_PARAM; | ||
} | ||
wfx_rsi.drv_thread = osThreadNew(rsi_wireless_driver_task_wrapper, NULL, &kDrvTaskAttr); | ||
// wfx_rsi.drv_task = xTaskCreateStatic((TaskFunction_t) rsi_wireless_driver_task, "rsi_drv", WFX_RSI_WLAN_TASK_SZ, NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code
@@ -138,7 +138,12 @@ constexpr osThreadAttr_t kUartTaskAttr = { .name = "UART", | |||
.cb_size = osThreadCbSize, | |||
.stack_mem = uartStack, | |||
.stack_size = kUartTaskSize, | |||
.priority = osPriorityRealtime }; | |||
#if SLI_SI91X_MCU_INTERFACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave a note as to why we are having different priority for 917 SoC
/* Structure that will hold the TCB of the wfxRsi Task being created. */ | ||
StaticTask_t wfxRsiTaskBuffer; | ||
// Thread for the WLAN RSI | ||
constexpr uint32_t kWlanTaskSize = 2048; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it be better to keep all these in the wfx_rsi.h ? since we are keeping similar values there itself
StackType_t wfxBLETaskStack[WFX_RSI_TASK_SZ] = { 0 }; | ||
osTimerId_t sbleAdvTimeoutTimer; | ||
|
||
constexpr uint32_t kBleTaskSize = 2048; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe shift to header file with a macro ?
{ | ||
OTAConfig::Init(); | ||
} | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#endif /* SILABS_OTA_ENABLED */