Hello,
we use embOS V3.82n for Renesas SH2A source code version.
For our application we changed default Task events from 8 bit to 32 bit (#define OS_TASK_EVENT OS_U32). Using our custom version with more Task events we found a bug, that appears sometimes we using OS_WaitSingleEventTimed() (Task suspend for timeout time also if the masked event was signaled).
We located the bug. The function OS_DeactivateTimedV(), calling by OS_WaitSingleEventTimed(), modify the current Task event mask unfortunately with casting the mask:
we use embOS V3.82n for Renesas SH2A source code version.
For our application we changed default Task events from 8 bit to 32 bit (#define OS_TASK_EVENT OS_U32). Using our custom version with more Task events we found a bug, that appears sometimes we using OS_WaitSingleEventTimed() (Task suspend for timeout time also if the masked event was signaled).
We located the bug. The function OS_DeactivateTimedV(), calling by OS_WaitSingleEventTimed(), modify the current Task event mask unfortunately with casting the mask:
- OS_pCurrentTask->EventMask = (OS_U8)v;
- OS_pCurrentTask->EventMask = (OS_TASK_EVENT)v;