Bug in CMSIS_OS for FreeRTOS V1.02
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-07-29 8:09 AM
Posted on July 29, 2015 at 17:09
This file was provided in the L4 release V1.0.0.
osSemaphoreWait should return an int representing how many tokens are remaining. However, the implementation supplied instead returns a value of type osStatus. They are not compatible. Does ST maintain this file?
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-07-31 5:38 AM
Posted on July 31, 2015 at 14:38
Hi jmonset,
If you see the osStatus type, you will find that it's an enum structure and all parameters are of type int32_t. So, I agree with you that an enhancement should be done by making the return value of type osStatus, but in any case it is a bug. -Shahrazad-Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-07-31 6:49 AM
Posted on July 31, 2015 at 15:49
Shouldn't it follow the CMSIS standard and return the number of objects available?
Changing the return status type to osStatus makes it non-standard.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-09-09 2:56 AM
Posted on September 09, 2015 at 11:56
Hi jmonset,
You are right the returned value should be similar to the CMSIS standard (number of objects and not of type osStatus). The issue is reported for enhancement. Thank you for your feedback. -Shahrzad-