bool_t osSetEventFromIsr(OsEvent *event) { //Set the specified event to the signaled state OS_EVENT_Set(event); //The return value is not relevant return FALSE; }
/********************************************************************* * * IP_OS_SignalItem() * * Context * Function is called from a task, not an ISR */ void IP_OS_SignalItem(void * pWaitItem) { TCP_WAIT * pTCPWait; OS_EnterRegion(); // Make sure that adding to list and suspending is an atomic opration for tasks (interrupts allowed) for (pTCPWait = _pTCPWait; pTCPWait; pTCPWait = pTCPWait->pNext) { if (pTCPWait->pWaitItem == pWaitItem) { OS_EVENT_Set(&pTCPWait->Event); } } OS_LeaveRegion(); }
void osSetEvent(OsEvent *event) { //Set the specified event to the signaled state OS_EVENT_Set(event); }
/********************************************************************* * * IP_OS_SignalRxEvent */ void IP_OS_SignalRxEvent(void) { OS_EVENT_Set(&_EventRx); }
/********************************************************************* * * IP_OS_SignalNetEvent * * Function description * Wakes the IP_Task if it is waiting for a NET-event or timeout in * the fucntion IP_OS_WaitNetEvent(). */ void IP_OS_SignalNetEvent(void) { OS_EVENT_Set(&_EventNet); }