cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in CMSIS_OS for FreeRTOS V1.02

jon_magnussen
Associate
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?
3 REPLIES 3
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- 

jon_magnussen
Associate
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.

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-