Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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.3
- Date:
- 2010.04.26
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 15:09:52 by
 1.7.2
 1.7.2