-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
use configSTACK_DEPTH_TYPE consequently (updated for 11.0.x) #942
Conversation
Revert for backwards compatibility
merge with upstream 10.5.0
I like these changes and have approved them. We need a matching PR to fix the tests and demo's. Briefly looking at these CI failures shows there are only a few places where changes are required. |
Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Update ulStackDepth to uxStackDepth Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Also add uint32_t cast prvGetMPURegionSizeSetting.
Revert casting of ( uint32_t ) pxBottomOfStack
Update unpaired critical section in vTaskDelete for readability (FreeRTOS#958)
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
I have made the following changes in the recent commit:
Other than those there were some build failures which I have addressed. Let me know if you are good with these and we will merge this PR. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #942 +/- ##
=======================================
Coverage 93.42% 93.42%
=======================================
Files 6 6
Lines 3194 3194
Branches 885 885
=======================================
Hits 2984 2984
Misses 103 103
Partials 107 107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Agreed that is the best solution as discussed above. Perhaps (in a separate PR) some 8 bit CPU ports will need to have their Also the documentation will need to be updated in certain places to reflect the new default.
Agreed. Noting that this path is not compliant with the FreeRTOS variable naming standards, which may lead to later confusion.
Thanks.
Please proceed. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Thanks @feilipu . We will update the documentation for the changes. |
use configSTACK_DEPTH_TYPE consequently (updated for 11.0.x) (FreeRTOS#942)
Title
Use
configSTACK_DEPTH_TYPE
consequently throughout.Description
The configuration
configSTACK_DEPTH_TYPE
is used partially, but many places the stack depth variable type is assumed to beuint16_t
, and in others the assumption isuint32_t
, and the variable names are sometimesus...
orul...
respectively.This PR implements consequent use of
configSTACK_DEPTH_TYPE
throughout and adjusts variable names to beux...
orpux...
as appropriate.The default value remains set as
uint16_t
, although some ports assumeuint32_t
without necessarily redefining it as advised.Files have been updated for updated for 11.0.x.
Note that some extended coverage tests fail because they don't use the correct variable size, as some ports don't configure the
configSTACK_DEPTH_TYPE
correctly. Rather they incorrectly assume the default isuint32_t
.Just as a side note; the contents of this PR have been tested by 1,000s of users over the past 6 years in Arduino_FreeRTOS. Anyone who has come to learn FreeRTOS via the Arduino IDE will expect the stack type behaviour found in this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.