Main Page   Modules   Alphabetical List   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...


Typedefs

typedef _NUTTIMERINFO NUTTIMERINFO
 Timer type.


Functions

void NutTimerInit (void)
 Initialize system timer.

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

void NutTimerStop (HANDLE handle)
 Stop a specified timer.

void NutTimerStopAsync (HANDLE handle)
 Asynchronously stop a specified timer.

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

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

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

u_long NutGetTickCount (void)
 Return the number of timer ticks.

u_long NutGetSeconds (void)
 Return the seconds counter value.

u_long NutGetMillis (void)
 Return the milliseconds counter value.


Variables

NUTTIMERINFO *volatile nutTimerList
 Linked list of all system timers.

NUTTIMERINFO *volatile nutTimerPool


Detailed Description

Timer management definitions.


Typedef Documentation

typedef struct _NUTTIMERINFO NUTTIMERINFO
 

Timer type.


Variable Documentation

NUTTIMERINFO* volatile nutTimerList  
 

Linked list of all system timers.

NUTTIMERINFO* volatile nutTimerPool  
 

This pool is used to collect released memory from elapsed timers. It's required because we can't free memory in interrupt context.


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