E:/Projects/AvrLib/include/task.h File Reference

MultiTasking Kernel. More...

#include "pq.h"

Include dependency graph for task.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tcb
 Definition of a Task Control Block (TCB). More...
struct  ecb

Defines

#define LO(x)   (x & 0x0ff)
#define HI(x)   ((x >> 8) & 0x0ff)
#define STACK_SIZE   96
#define EVENT_NOERROR   0
#define EVENT_NOTASKS   -1
#define EVENT_OVERFLOW   -2
#define EVENT_TIMEOUT   -3
#define EVENT_DELETED   -4
#define SEMAPHORE_MODE_BLOCKING   0
#define SEMAPHORE_MODE_TIMEOUT   1
#define THREAD(func, arg)
#define SAVE_IRQ()
 Save context in Interrupt Routine.
#define RESTORE_IRQ()
#define SAVE_CONTEXT()
#define RESTORE_CONTEXT_OLD()
#define RESTORE_CONTEXT()

Typedefs

typedef struct tcb TCB
typedef struct ecb ECB

Functions

void CreateTask (TCB *t, void(*task)(void *), int stacksize, int priority, char *name, void *arg)
 Create a task.
void IrqSwap (void)
void OSInit (void)
void Yeild (void)
int PendSemaphore (ECB *e, int Timeout)
int PostSemaphore (ECB *e, int Value)
int PostSemaphoreWithData (ECB *e, int Value, unsigned data)
int PostSemaphoreIrq (ECB *e, int Value)
void TimerTicker (void)
void vPortYieldProcessor (void)
void vPortStartFirstTask (void)
int TimeDelay (int mSec)
void Enable (char sr)
char Disable (void)
void StartOS (void)
unsigned MeasureStackUsage (char *s, unsigned max)
unsigned StackHeapAvailiable (void)
 Get the amount of memory available for Stacks.
void RegisterTickerPost (ECB *pS)
ECBNewSemaphore (int InitCount, int Mode, char *name)
 Create a new semaphore.
void CreateSemaphore (ECB *e, int InitCount, int Mode, char *n)
 Initialize a new semaphore.
void DeleteSemaphore (ECB *e)
 Delete a semaphore.
void DoSwap (void)
 Do a Context Switch.
void ExitInterrupt (void)
 This function is called at the end of an interrupt.

Variables

ECBMasterList
ECBTimeoutList
PQ ActiveTasks
TCBCurrentTask
TCBNextTask
ECBLCDBlocker
int OsRunning
volatile int TStamp
volatile int InterruptCount
volatile int Blocking


Detailed Description

MultiTasking Kernel.

Multitasking Fucntions

Definition in file task.h.


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