CooCox 1.1.4 on mbed with simple blinky example

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

utility.c File Reference

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]ticksSpecifies the systerm tick numbers that will be converted.
[out]hourHours which converted.
[out]minuteminutes which converted.
[out]secseconds which converted.
[out]millsecmillseconds which converted.
Return values:
None
Description

This function is called to convert specify ticks to time format.

Definition at line 38 of file utility.c.

StatusType CoTimeToTick ( U8  hour,
U8  minute,
U8  sec,
U16  millsec,
U32 *  ticks 
)

Convert time to tick.

Parameters:
[in]hourSpecifies the number of hours.
[in]minuteSpecifies the number of minutes.
[in]secSpecifies the number of seconds.
[in]millsecSpecifies the number of millseconds.
[out]ticksTick numbers that converted.
Return values:
E_INVALID_PARAMETERInvalid parameter be passed and convert fail.
E_OKConvert successful.
Description

This function is called to convert specify time to tick number.

Definition at line 71 of file utility.c.