Using more Task events with embOS V3.82n for Renesas SH2A bug (Sample: 32 events instead of 8 events)

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Using more Task events with embOS V3.82n for Renesas SH2A bug (Sample: 32 events instead of 8 events)

    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:
    • OS_pCurrentTask->EventMask = (OS_U8)v;
    For all who won’t to use more task events with embOS V3.82n for Renesas SH2A change the line to:
    • OS_pCurrentTask->EventMask = (OS_TASK_EVENT)v;
    kind regards