ARMEBS4  revision-26.06.2015
Data Structures | Functions
Timeout functions

Provides a simple way to manage time and timeouts. More...

Collaboration diagram for Timeout functions:

Data Structures

struct  timeout_t
 Timeout structure. More...
 

Functions

static timeout_t time_get (void)
 Get current time in obscure format from boot. More...
 
static uint32_t time_elapsed (timeout_t timeout)
 Is this time passed? More...
 
timeout_t time_set_timeout_ms (uint32_t ms)
 Set an obscure time at least ms milliseconds in the future. More...
 

Detailed Description

Provides a simple way to manage time and timeouts.

Function Documentation

static timeout_t time_get ( void  )
inlinestatic

Get current time in obscure format from boot.

Returns
the current time
Warning
will overlap

Definition at line 46 of file time.h.

Referenced by time_elapsed(), and time_set_timeout_ms().

Here is the caller graph for this function:

static uint32_t time_elapsed ( timeout_t  timeout)
inlinestatic

Is this time passed?

Parameters
timeoutthe timeout value
Returns
zero if this time has not elapsed

Definition at line 71 of file time.h.

References time_get().

Referenced by Audio_PlaySin(), camera_continuous_stop(), and camera_one_shot_wait().

Here is the call graph for this function:

Here is the caller graph for this function:

timeout_t time_set_timeout_ms ( uint32_t  ms)

Set an obscure time at least ms milliseconds in the future.

Parameters
msthe minimum delay
Returns
the timeout obscure variable
See also
time_elapsed

time_elapsed will return true when more than ms have passed

Definition at line 15 of file time.c.

References time_get().

Referenced by Audio_PlaySin(), camera_continuous_stop(), and camera_one_shot_wait().

Here is the call graph for this function:

Here is the caller graph for this function: