tfKernelTaskPostEvent

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


void tfKernelTaskPostEvent (ttUserGenericUnionPtr eventPtr);


Function Description

Using with an RTOS that supports semaphores

This call is RTOS specific.

This function is used to resume waiting tasks that were waiting on this event. It is called from a task.


Using with an RTOS that does not support semaphores

The user must write this function to make use of their specific operating system. This function resumes tasks that were waiting on the event pointed to by 'eventPtr'. This should be similar to tfKernelIsrPostEvent() with one major difference: tfKernelIsrPostEvent() is called from within an ISR, whereas tfKernelTaskPostEvent() is called from a task. Most operating systems have different calls when posting occurs from an ISR or from a task.


Parameters

  • eventPtr
    This value depends on the capabilities of the RTOS:
  • If the RTOS supports semaphores, this is a pointer to the event to post on.
  • If the RTOS does not supports semaphores, this is a pointer to the event flag to which this function must post.


Table of Contents >> Programmer's Reference