Defines | Functions

Clock interface

Defines

#define CLOCK_SECOND

Functions

void clock_init (void)
 Inicializa o clock.
clock_time_t clock_time (void)
 Retorna o tempo de T0.

Detailed Description

The clock interface is the interface between the timer library and the platform specific clock functionality. The clock interface must be implemented for each platform that uses the timer library.

The clock interface does only one this: it measures time. The clock interface provides a macro, CLOCK_SECOND, which corresponds to one second of system time.

See also:
Timer library

Define Documentation

#define CLOCK_SECOND

A second, measured in system clock time.

Definition at line 81 of file clock.h.


Function Documentation

void clock_init ( void   ) 

Initialize the clock library.

This function initializes the clock library and should be called from the main() function of the system.

Funcao para inicializar o clock T0

Definition at line 35 of file eth.c.

Here is the call graph for this function:

clock_time_t clock_time ( void   ) 

Get the current clock time.

This function returns the current system clock time.

Returns:
The current clock time, measured in system ticks.

Definition at line 61 of file eth.c.

Here is the call graph for this function: