Modules | |
Internal Task Management Functions | |
Defines | |
#define | otosInterruptReturn() otosScheduler(SCHED_NORM) |
Return from Interrupt. | |
#define | otosBlock() otosScheduler(SCHED_BLOCK) |
Block task for ever. | |
Functions | |
OtosTask * | otosCreateTask (void(*pFunc)(void *), void *pArg, uint8_t prio, uint16_t stacksize, uint8_t name) |
Create a task. | |
OtosTask * | otosGetRunningTask (void) |
Get pointer to the running task. | |
uint8_t | otosSetPriority (uint8_t prio) |
Set the priority of the running task. |
|
Block task for ever.
Definition at line 108 of file task.h. Referenced by otosLockMutex(), otosReceiveEvent(), otosReceiveMessage(), and otosSleep(). |
|
Return from Interrupt. Call this as last instruction in an interrupt service routine if you want to call the otOS scheduler (e. g. if you sent some events to a task and you want to wake it immediately). |
|
Create a task. If the created task has a priority higher than the running task, the new task is started immediately, else it is inserted in the ready queue.
Definition at line 113 of file task.c. References otosAllocate(), otosInsertTaskInQueue(), and otosScheduler(). Referenced by main(). |
|
Get pointer to the running task.
Definition at line 190 of file task.c. References g_pRunningTask. |
|
Set the priority of the running task.
Definition at line 204 of file task.c. References g_pRunningTask, and otosScheduler(). |