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

timer.h File Reference

Timer management definitions. More...

#include <sys/device.h>

Go to the source code of this file.

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.


Variables

NUTTIMERINFO *volatile nutTimerList
 Linked list of all system timers.

NUTTIMERINFO *volatile nutTimerPool


Detailed Description

Timer management definitions.


Variable Documentation

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.


Generated on Thu Jan 30 22:30:55 2003 for EduNet by doxygen1.2.18