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

Bugfix/task priority #151

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Bugfix/task priority #151

wants to merge 8 commits into from

Conversation

chirag-silabs
Copy link
Owner

!!!!!!!!!! Please delete the instructions below and replace with PR description

If you have an issue number, please use a syntax of
Fixes #12345 and a brief change description

If you do not have an issue number, please have a good description of
the problem and the fix. Help the reviewer understand what to expect.

Make sure you delete these instructions (to prove you have read them).

!!!!!!!!!! Instructions end

@chirag-silabs chirag-silabs changed the base branch from bugfix/platform_event_handling to master August 29, 2024 12:33
break;

case DeviceEventType::kThreadConnectivityChange:
case DeviceEventType::kInternetConnectivityChange: {
#ifdef DIC_ENABLE
VerifyOrReturn(event->InternetConnectivityChange.IPv4 == kConnectivity_Established);

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.

Copy link
Owner Author

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,

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

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;

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;

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#endif /* SILABS_OTA_ENABLED */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants