Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

sys/timer.h File Reference

Timer management definitions. More...


Data Structures

struct  _NUTTIMERINFO
 Timer information structure. More...


Defines

#define TM_SLEEP
#define TM_ONESHOT

Typedefs

typedef struct _NUTTIMERINFO NUTTIMERINFO
 Timer type.


Functions

void NutTimerInit (void)
 Initialize system timer. More...

HANDLE NutTimerStart (u_long ms, void(*callback)(HANDLE, void *), void *arg, u_char flags)
 Create an asynchronous timer. More...

void NutTimerStop (HANDLE handle)
 Stop a specified timer. More...

void NutSleep (u_long ms)
 Temporarily suspends the current thread. More...

void NutDelay (u_char ms)
 Loop for a specified number of milliseconds. More...

u_long NutGetCpuClock (void)
 Return the CPU clock in Hertz. More...


Variables

NUTTIMERINFO* volatile nutTimerList
 Linked list of timers.

u_long cpu_clock


Detailed Description

Timer management definitions.


© 2000-2001 by egnite Software GmbH - visit http://www.ethernut.de/