| Summary |
#include <rtl.h>
void isr_evt_set (
U16 event_flags, /* Bit pattern of event flags to set */
OS_TID task ); /* The task that the events apply to */
|
| Description | The isr_evt_set function sets the event flags for the task identified by the function argument. The function only sets the event flags whose corresponding bit is set to 1 in the event_flags argument. The isr_evt_set function is in the RL-RTX library. The prototype is defined in rtl.h. Note - You can call the isr_evt_set function only from the IRQ interrupt service routine. You cannot call it from the FIQ interrupt service routine.
- When the isr_evt_set function is called too frequently, it forces too many tick timer interrupts and the task manager task scheduler is executed most of the time. It might happen that two isr_evt_set functions for the same task are called before the task gets a chance to run from one of the event waiting functions (os_evt_wait_). Of course one event is lost because event flags are not counting objects.
|
| Return Value | The isr_evt_set function does not return any value. |
| See Also | os_evt_clr, os_evt_set, os_evt_wait_and, os_evt_wait_or |
| Example |
#include <rtl.h>
void timer1 (void) __irq {
..
isr_evt_set (0x0008, tsk1);
..
}
|