Task Related API

DESCRIPTIONS

FUNCTION SIGNATURES

Create a task

int  REXIS_TaskCreate
(char *name, void (*func)(unsigned), unsigned prio, unsigned stack_size, unsigned arg0);

Get the task ID of a task by its name

int  REXIS_TaskGetPIDByName(char *name);

Get the task name by its ID

char*REXIS_TaskGetNameByPID(int pid);

Get the task ID of the current task

int  REXIS_TaskGetPID(void);

Release control of the CPU (task can be run again)

void REXIS_TaskYield(void);

Release control of the CPU and go into a hibernating state

void REXIS_TaskHibernate(void);

Sleep for specified number of seconds

void REXIS_TaskSleepSecs(unsigned secs);

Sleep for specified number of milliseconds

void REXIS_TaskSleepMilliSecs(unsigned msecs);

Wake up a task from hibernation

int  REXIS_TaskWakeup(int pid);

Wake up a task from hibernation from an ISR

void REXIS_TaskWakeupFromISR(int pid);

Kill a task

int  REXIS_TaskKill(int pid);