Menu

#37 SetEvent call when no events (Windows)

open-fixed
OpenSEK (29)
5
2009-07-23
2009-07-23
Mr.Mitchell
No

In the Os_Internal_Arch.c file for the windows implementation there is a call to SetEvent in the function that handles the Alarms (CounterInterrupt). The SetEvent function is only available when there actually are events declared in the OIL file. For the Com example there are no events, so when compiling that application I get a linker error that SetEvent can not be found.

The solution to this would be to place that SetEvent call within "#if (NO_EVENTS == DISABLE)".

Discussion

  • Mr.Mitchell

    Mr.Mitchell - 2009-07-23
    • assigned_to: nobody --> mr_mitchell
     
  • Mr.Mitchell

    Mr.Mitchell - 2009-07-23

    Placed the SetEvent call within "#if (NO_EVENTS == DISABLE)". Com example now compiles fine on Windows

     
  • Mr.Mitchell

    Mr.Mitchell - 2009-07-23
    • status: open --> open-fixed
     

Log in to post a comment.

Auth0 Logo