-
Notifications
You must be signed in to change notification settings - Fork 210
Fix too small return type for uxTaskGetStackHighWaterMark()
#29
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
Conversation
Let's sit on this to see whether @RichardBarry or @aggarg fixes it upstream in the first v10 bug fix release. |
I'm fine with waiting for an upstream solution. Happy New Year! 🎆 |
@Floessie please read the aws/amazon-freertos discussion, where Richard has commented. This issue goes back "forever" and I guess it probably won't be changed because of compatibility issues. IMHO, perhaps it makes sense to just do an improved pull request version with |
@feilipu I just read the discussion, and I understand this is an compatibility problem for Richard. So yes, I'll fix it here and provide you with an updated PR. |
Just add this one. And this one, and this one. I think they need to be changed too. And also the definition of the struct needs changing too, here. And here, you should enter the default info to make this obvious... like this. /* Set the stack pointer type to be uint16_t, otherwise it defaults to unsigned long */
#define portPOINTER_SIZE_TYPE uint16_t
+/* Set the stack depth type to be uint16_t. */
+#define configSTACK_DEPTH_TYPE uint16_t
/* Set the following definitions to 1 to include the API function, or zero
to exclude the API function. */ Not sure what effect this will have. I don't have much time for testing right now, sorry. I'm trying to fix #26 currently. Not sure why my simple fixes don't work... |
Yes. The last one is just adding a configuration line, that already exists identically as the default. The only reason to put it there is to anchor a comment that the default return type for Also, regarding the comment on the aws 12 issue, I'm considering whether it would make some sense to use the I think it is only the |
I think that it is done now. Please, check that everything is good for your needs. Since I've added the backwards compatibility conditionals into Release 10.0.0-6 it should be useful for @RichardBarry too. |
Ouch. I missed the references to Along with references to These are across |
Well, I saw that, but considered it as "not a problem". Yes, it would be nice to save a few bytes here, but it's not too small.
I'll take a look at those places and provide you with a follow-up PR. Thanks for solving this issue! Best, |
Just fixed it. Found some more issues. Please stand by. And now, please test 10.0.0-7. |
This PR is now in the mainline FreeRTOS v10.1.0. At some stage in the near future (once it is clear there are no patches needed), I'll move this repository to be v10.1.0. Work in progress for v10.1.1 here. |
This PR fixes #27 by replacing the
uint8_t
return type ofuxTaskGetStackHighWaterMark()
withuint16_t
.