CooCox 1.1.4 on mbed with simple blinky example
utility.c File Reference
Utility management implementation code of CooCox CoOS kernel. More...
Go to the source code of this file.
Functions | |
void | CoTickToTime (U32 ticks, U8 *hour, U8 *minute, U8 *sec, U16 *millsec) |
Convert tick number to time. | |
StatusType | CoTimeToTick (U8 hour, U8 minute, U8 sec, U16 millsec, U32 *ticks) |
Convert time to tick. |
Detailed Description
Utility 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 utility.c.
Function Documentation
void CoTickToTime | ( | U32 | ticks, |
U8 * | hour, | ||
U8 * | minute, | ||
U8 * | sec, | ||
U16 * | millsec | ||
) |
Convert tick number to time.
- Parameters:
-
[in] ticks Specifies the systerm tick numbers that will be converted. [out] hour Hours which converted. [out] minute minutes which converted. [out] sec seconds which converted. [out] millsec millseconds which converted.
- Return values:
-
None
- Description
This function is called to convert specify ticks to time format.
StatusType CoTimeToTick | ( | U8 | hour, |
U8 | minute, | ||
U8 | sec, | ||
U16 | millsec, | ||
U32 * | ticks | ||
) |
Convert time to tick.
- Parameters:
-
[in] hour Specifies the number of hours. [in] minute Specifies the number of minutes. [in] sec Specifies the number of seconds. [in] millsec Specifies the number of millseconds. [out] ticks Tick numbers that converted.
- Return values:
-
E_INVALID_PARAMETER Invalid parameter be passed and convert fail. E_OK Convert successful.
- Description
This function is called to convert specify time to tick number.
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2