Tasking


Detailed Description

The uSMARTX kernel provides some basic control over task.


Defines

#define TSK_CREATE(name)
 Create a task.

Functions

HANDLE * TSK_Self (void)
 Get current running task handle.
void TSK_Sleep (HANDLE *ph, uint16 tout)
 Task sleep function.
void TSK_Suspend (HANDLE *ph)
 Task suspend function.
void TSK_Resume (HANDLE *ph)
 Task resume function.


Define Documentation

#define TSK_CREATE name   ) 
 

Create a task.

This macro creates a task.

Examples:
buffer.c, and timers.c.


Function Documentation

void TSK_Resume HANDLE *  ph  ) 
 

Task resume function.

Resume a previously suspended task.

Parameters:
ph handle to task
Examples:
buffer.c.

HANDLE* TSK_Self void   ) 
 

Get current running task handle.

Return values:
current running task handle
Examples:
buffer.c, and timers.c.

void TSK_Sleep HANDLE *  ph,
uint16  tout
 

Task sleep function.

Delay a task from execution for the specified amount of timer ticks. When the timeout expires the task is unblocked and is ready to execute. The TSK_TOUT value is passed to it.

Parameters:
ph handle to task
tout timeout value
Examples:
buffer.c, and timers.c.

void TSK_Suspend HANDLE *  ph  ) 
 

Task suspend function.

Suspend a task from execution, until the task is it explicitely resumed.

Parameters:
ph handle to task
Examples:
buffer.c.


Generated on Sun Oct 16 22:23:55 2005 for uSmartX by  doxygen 1.4.3