Published 03 Dec 2010, by
Eric Ebert
CoOS,
rtos
Core implementation code of CooCox CoOS kernel.
More...
Go to the source code of this file.
Detailed Description
Core implementation code of CooCox CoOS kernel.
- Version:
- V1.1.3
- Date:
- 2010.04.26
INTERNAL FILE,DON'T PUBLIC.
© COPYRIGHT 2009 CooCox
Definition in file core.c.
Function Documentation
Enter a ISR.
- Parameters:
-
- Return values:
-
- Description
This function is called to notify OS when enter to an ISR.
- Note:
- When you call API in ISR,you must call CoEnterISR() before your interrupt handler code,and call CoExitISR() after your handler code and before exiting from ISR.
Definition at line 40 of file core.c.
Exit a ISR.
- Parameters:
-
- Return values:
-
- Description
This function is called when exit from a ISR.
- Note:
Definition at line 59 of file core.c.
| OS_VER CoGetOSVersion |
( |
void |
) |
|
Get OS version.
- Parameters:
-
- Return values:
-
| The | value is version of OS mutipled by 100. |
- Description
This function is used to return the version number of CooCox OS. the return value corresponds to CooCox's version number multiplied by 100. In other words, version 1.02 would be returned as 102.
Definition at line 234 of file core.c.
Initialize OS.
- Parameters:
-
- Return values:
-
- Description
This function is called to initialize OS.
- Note:
- You must call this function first,before any other OS API function
There is a example for useage of this function,as follows:
e.g.
...
OsInit();
CreateTask(...);
...
OsStart();
Definition at line 173 of file core.c.
| void CoSchedLock |
( |
void |
) |
|
Lock schedule.
- Parameters:
-
- Return values:
-
- Description
This function is called in application code to lock schedule.
- Note:
Definition at line 125 of file core.c.
| void CoSchedUnlock |
( |
void |
) |
|
Unlock schedule.
- Parameters:
-
- Return values:
-
- Description
This function is called in APP to unlock schedule.
- Note:
Definition at line 144 of file core.c.
Start multitask.
- Parameters:
-
- Return values:
-
- Description
This function is called to start multitask.After it is called, OS start schedule task by priority or/and time slice.
- Note:
- This function must be called to start OS when you use CoOS,and must call after CoOsInit().
Definition at line 211 of file core.c.
| void OsSchedUnlock |
( |
void |
) |
|
Unlock schedule.
- Parameters:
-
- Return values:
-
- Description
This function is called to unlock schedule(i.e.enable schedule again)
- Note:
Definition at line 88 of file core.c.
Variable Documentation
Use to indicate interrupt nesting level
Definition at line 20 of file core.c.
Task Switch lock.
Definition at line 21 of file core.c.