RTOS – osWait

Sysprogs forums Forums VisualGDB RTOS – osWait

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8489
    bruno
    Participant

    Hello,

    Unable to use osWait()  Error: undefined reference to ‘osWait’

    I have already set:  osFeature_Wait         1

    Code:

    void lcdTask(void const *argument)
    {
    osEvent evt_lcd;
    for (;;)
    {
    evt_lcd = osWait(osWaitForever);
    switch(evt_lcd.status)
    {
    case osEventSignal:
    break;
    case osEventMessage:
    break;
    }
    }
    }

     

    #8494
    support
    Keymaster

    Hi,

    osWait() should normally be defined in cmsis_os.c. Please check that the file is included in your project and then see if the function is present in the file and is not surrounded by an inactive #ifdef block.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.