Last commit
03 Dec 2010
CoOS ,
rtos
Description: CoOS Demonstrator adapted to mbed Hardware.
« Back to documentation index
OsTask.h File Reference
Header file related to task.
More...
Go to the source code of this file.
Detailed Description
Header file related to task.
Version: V1.1.3
Date: 2010.04.26
This file including some defines and function declare related to task.
INTERNAL FILE,DON'T PUBLIC.
© COPYRIGHT 2009 CooCox
Definition in file OsTask.h .
Function Documentation
void ActiveTaskPri
(
U8
pri )
Active priority in queue.
Parameters:
[in] pri Task priority
[in] None
[out] None
Return values:
Description
This function is called in Binary-Scheduling Algorithm to active priority in queue, if this priority had been in activation, increate the task num for this priority.
Definition at line 296 of file task.c .
void CreateTCBList
(
void
)
Create a TCB list.
Parameters:
Return values:
Description
This function is called by CoOSInit() to initial the empty list of OS_TCBS,supply a pointer to free TCB .
Definition at line 55 of file task.c .
void DeleteTaskPri
(
U8
pri )
Delete priority in queue.
Parameters:
[in] pri Task priority
[in] None
[out] None
Return values:
Description
This function is called in Binary-Scheduling Algorithm to decrease the task num for this priority, if the num goto 0, remove the priority for queue.
Definition at line 335 of file task.c .
void IdleTask
(
void *
pdata )
void InsertToTCBRdyList
(
P_OSTCB
tcbInsert )
Insert a task to the ready list.
Parameters:
[in] tcbInsert A pointer to task will be inserted.
[out] None
Return values:
Description
This function is called to insert a task to the READY list.
Definition at line 368 of file task.c .
void RemoveFromTCBRdyList
(
P_OSTCB
ptcb )
Remove a task from the READY list.
Parameters:
[in] ptcb A pointer to task which be removed.
[out] None
Return values:
Description
This function is called to remove a task from the READY list.
Definition at line 491 of file task.c .
Schedule function.
Schedule function
Parameters:
Return values:
Description
This function is called by every where need to switch context, It is schedule function of OS kernel.
Definition at line 710 of file task.c .
Variable Documentation
A pointer to free TCB .
pointer to free TCB
Definition at line 28 of file task.c .
The counter of system tick.
Definition at line 32 of file task.c .
Use to indicate interrupt nesting level.
Use to indicate interrupt nesting level
Definition at line 20 of file core.c .
Schedule is lock(LOCK) or unlock(UN_LOCK).
Task Switch lock.
Definition at line 21 of file core.c .
A pointer to TCB next be scheduled.
Poniter to task that next scheduled by OS
Definition at line 30 of file task.c .
A pointer to TCB that is ready status
Pointer to the READY list.
Definition at line 29 of file task.c .
A pointer to TCB that is running.
Pointer to TCB that current running task.
Definition at line 31 of file task.c .
< Table use to save TCB pointer. The stack of IDLE task.
Definition at line 23 of file task.c .