XgEvent


Defines

#define SIGNALED   ((void *)-1)
 Signaled state definition.
#define NUT_WAIT_INFINITE   0
 Infinite waiting time definition.
#define NutEventPostFromIrq(qp)
 Post an event to a specified queue from interrupt context.

Define Documentation

#define NUT_WAIT_INFINITE   0

Infinite waiting time definition.

Applications should use this value to disable timeout monitoring while waiting for an event.

Definition at line 125 of file event.h.

#define NutEventPostFromIrq ( qp   ) 

Value:

{                                   \
    if (*qp == 0) {                 \
        *qp = SIGNALED;             \
    }                               \
    else if (*qp != SIGNALED) {     \
        NUTTHREADINFO *tp = (NUTTHREADINFO *)(*qp);    \
        tp->td_qpec++;              \
    }                               \
}
Post an event to a specified queue from interrupt context.

Wake up the thread with the highest priority waiting on the specified queue. This function is explicitly provided for IRQ handlers to wakeup waiting user threads.

Internally a counter is used to keep track of the posted events. This counter will be examined when the currently running thread is ready to release the CPU.

Note:
When calling this function, interrupt routines will change the root of an empty event queue to SIGNALED.
Parameters:
qp Identifies the queue an event is posted to.

Definition at line 144 of file event.h.

#define SIGNALED   ((void *)-1)

Signaled state definition.

The root of an event queue is set to this value if an event is posted to an empty queue. As this may happen during interrupts, the root of an event queue must be considered volatile.

Timer handles in the THREADINFO structure are set to this value if a timeout occured while waiting for an event.

Definition at line 117 of file event.h.


Generated on Sun Aug 31 13:31:34 2008 for FrankenRTOS by  doxygen 1.5.6