CooCox 1.1.4 on mbed with simple blinky example
time management implementation code of CooCox CoOS kernel. More...
Go to the source code of this file.
Functions | |
void | InsertDelayList (P_OSTCB ptcb, U32 ticks) |
Insert into DELAY list. | |
void | RemoveDelayList (P_OSTCB ptcb) |
Remove from the DELAY list. | |
U64 | CoGetOSTime (void) |
Get current ticks. | |
StatusType | CoTickDelay (U32 ticks) |
Delay current task for specify ticks number. | |
StatusType | CoResetTaskDelayTick (OS_TID taskID, U32 ticks) |
Reset task delay ticks. | |
StatusType | CoTimeDelay (U8 hour, U8 minute, U8 sec, U16 millsec) |
Delay current task for detail time. | |
void | TimeDispose (void) |
Dispose time delay. | |
void | isr_TimeDispose (void) |
Dispose time delay in ISR. | |
Variables | |
P_OSTCB | DlyList = 0 |
Detailed Description
time management 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 time.c.
Function Documentation
U64 CoGetOSTime | ( | void | ) |
StatusType CoResetTaskDelayTick | ( | OS_TID | taskID, |
U32 | ticks | ||
) |
Reset task delay ticks.
- Parameters:
-
[in] ptcb Task that want to insert into DELAY list. [in] ticks Specify system tick number which will delay . [out] None
- Return values:
-
E_CALL Error call in ISR. E_INVALID_ID Invalid task id. E_NOT_IN_DELAY_LIST Task not in delay list. E_OK The current task was inserted to DELAY list successful,it will delay for specify time.
- Description
This function delay specify ticks for current task.
StatusType CoTickDelay | ( | U32 | ticks ) |
Delay current task for specify ticks number.
- Parameters:
-
[in] ticks Specify system tick number which will delay. [out] None
- Return values:
-
E_CALL Error call in ISR. E_OK The current task was insert to DELAY list successful,it will delay specify time.
- Description
This function delay specify ticks for current task.
- Note:
- This function be called in ISR,do nothing and return immediately.
StatusType CoTimeDelay | ( | U8 | hour, |
U8 | minute, | ||
U8 | sec, | ||
U16 | millsec | ||
) |
Delay current task for detail time.
- Parameters:
-
[in] hour Specify the number of hours. [in] minute Specify the number of minutes. [in] sec Specify the number of seconds. [in] millsec Specify the number of millseconds. [out] None
- Return values:
-
E_CALL Error call in ISR. E_INVALID_PARAMETER Parameter passed was invalid,delay fail. E_OK The current task was inserted to DELAY list successful,it will delay for specify time.
- Description
This function delay specify time for current task.
- Note:
- If this function called in ISR,do nothing and return immediately.
void InsertDelayList | ( | P_OSTCB | ptcb, |
U32 | ticks | ||
) |
void isr_TimeDispose | ( | void | ) |
void RemoveDelayList | ( | P_OSTCB | ptcb ) |
void TimeDispose | ( | void | ) |
Variable Documentation
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2