CooCox 1.1.4 on mbed with simple blinky example
Core implementation code of CooCox CoOS kernel. More...
Go to the source code of this file.
Functions | |
void | CoEnterISR (void) |
Enter a ISR. | |
void | CoExitISR (void) |
Exit a ISR. | |
void | OsSchedUnlock (void) |
Unlock schedule. | |
void | CoSchedLock (void) |
Lock schedule. | |
void | CoSchedUnlock (void) |
Unlock schedule. | |
void | CoInitOS (void) |
Initialize OS. | |
void | CoStartOS (void) |
Start multitask. | |
OS_VER | CoGetOSVersion (void) |
Get OS version. | |
Variables | |
volatile U8 | OSIntNesting = 0 |
volatile U8 | OSSchedLock = 0 |
Detailed Description
Core implementation code of CooCox CoOS kernel.
- Version:
- V1.1.4
- Date:
- 2011.04.20
INTERNAL FILE,DON'T PUBLIC.
© COPYRIGHT 2009 CooCox
Definition in file core.c.
Function Documentation
void CoEnterISR | ( | void | ) |
Enter a ISR.
- Parameters:
-
[in] None [out] None
- Return values:
-
None
- 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.
void CoExitISR | ( | void | ) |
OS_VER CoGetOSVersion | ( | void | ) |
Get OS version.
- Parameters:
-
[in] None [out] None
- 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.
void CoInitOS | ( | void | ) |
Initialize OS.
- Parameters:
-
[in] None [out] None
- Return values:
-
None
- 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. ... // Your target initial code. OsInit(); // Initial OS. CreateTask(...); // Create tasks. ... OsStart(); // Start multitask.
void CoSchedLock | ( | void | ) |
void CoSchedUnlock | ( | void | ) |
void CoStartOS | ( | void | ) |
Start multitask.
- Parameters:
-
[in] None [out] None
- Return values:
-
None
- 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().
void OsSchedUnlock | ( | void | ) |
Variable Documentation
volatile U8 OSIntNesting = 0 |
volatile U8 OSSchedLock = 0 |
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2