Keil™, An ARM® Company

RTX51 Tiny User's Guide

isr_send_signal

Summary 
#include <rtx51tny.h>

char isr_send_signal (
  unsigned char task_id);     /* Task to signal */
Description 

The isr_send_signal function sends a signal to task task_id. If the specified task is already waiting for a signal, this function readies the task for execution but does not start it. Otherwise, the signal is stored in the signal flag of the task.

Note

  • This function is part of the RTX51 Tiny Real-Time Operating System which is included only with the PK51 Professional Developer's Kit.
  • This function may be called only from interrupt functions.
Return Value The isr_send_signal function returns a value of 0 if successful and -1 if the specified task does not exist.
See Also os_clear_signal, os_send_signal, os_wait
Example 
#include <rtx51tny.h>

void tst_isr_send_signal (void) interrupt 2
{
isr_send_signal (8);    /* signal task #8 */
}