-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Silabs] Updated deprecated APIs to their recommended alternatives #42295
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
base: master
Are you sure you want to change the base?
[Silabs] Updated deprecated APIs to their recommended alternatives #42295
Conversation
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.
Pull request overview
This PR updates deprecated Silicon Labs SDK APIs to their recommended alternatives to resolve deprecation warnings during compilation. The changes affect WiFi configuration and GPIO driver functions.
Key Changes:
- WiFi SDK API updates: Replaced deprecated
sl_si91x_prefixed functions withsl_wifi_equivalents - Type updates: Changed performance profile types from
sl_si91x_tosl_wifi_system_variants - GPIO driver update: Replaced deprecated interrupt masking function with its current alternative
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/platform/silabs/wifi/SiWx/WifiInterfaceImpl.cpp | Updated WiFi join configuration API call, performance profile return type documentation, and function signature with corresponding type changes |
| src/platform/silabs/SiWx/SiWxPlatformInterface.h | Replaced deprecated GPIO interrupt masking function with recommended alternative |
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.
Code Review
This pull request correctly updates several deprecated Silicon Labs APIs to their recommended alternatives, addressing deprecation warnings. The changes are straightforward replacements of function names and types, such as sl_si91x_gpio_driver_mask_uulp_npss_interrupt to sl_si91x_gpio_driver_mask_set_uulp_npss_interrupt and sl_si91x_performance_profile_t to sl_wifi_system_performance_profile_t. The implementation is correct and follows the stated intent of the PR. The code looks good, and I have no further suggestions.
|
PR #42295: Size comparison from e333758 to dae03a1 Full report (32 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Summary
This PR updates deprecated APIs to their recommended alternatives across platform and shell components to resolve deprecation warnings. The changes replace deprecated Silicon Labs WiFi SDK and GPIO driver functions with their current equivalents.
Key Changes:
sl_si91x_set_join_configurationwithsl_wifi_set_join_configurationin WiFi interfacesl_si91x_performance_profile_ttype tosl_wifi_system_performance_profile_tsl_si91x_gpio_driver_mask_uulp_npss_interruptwithsl_si91x_gpio_driver_mask_set_uulp_npss_interruptRelated issues
N/A
Testing
Readability checklist
The checklist below will help the reviewer finish PR review in time and keep the
code readable:
descriptive
“When in Rome…”
rule (coding style)
See: Pull Request Guidelines