nut/include/sys/timer.h File Reference


Detailed Description

Timer management definitions.

#include <sys/types.h>
#include <arch/timer.h>

Data Structures

struct  _NUTTIMERINFO
 Timer information structure. More...

Defines

#define TM_ONESHOT   0x01

Typedefs

typedef _NUTTIMERINFO NUTTIMERINFO
 Timer type.

Functions

u_long NutGetMillis (void)
 Return the milliseconds counter value.
u_long NutGetSeconds (void)
 Return the seconds counter value.
u_long NutGetTickCount (void)
 Return the number of system timer ticks.
void NutSleep (u_long ms)
 Temporarily suspends the current thread.
NUTTIMERINFONutTimerCreate (u_long ticks, void(*callback)(HANDLE, void *), void *arg, u_char flags)
 Create a new system timer.
__BEGIN_DECLS void NutTimerInit (void)
 Initialize system timer.
void NutTimerInsert (NUTTIMERINFO *tn)
 Insert a new timer in the global timer list.
void NutTimerProcessElapsed (void)
 Process elapsed timers.
HANDLE NutTimerStart (u_long ms, void(*callback)(HANDLE, void *), void *arg, u_char flags)
 Start a system timer.
HANDLE NutTimerStartTicks (u_long ticks, void(*callback)(HANDLE, void *), void *arg, u_char flags)
 Start a system timer.
void NutTimerStop (HANDLE handle)
 Stop a specified timer.

Variables

NUTTIMERINFOnutTimerList
 Double linked list of all system timers.


Generated on Tue Jan 23 21:12:26 2007 for BTnut System Software by doxygen 1.4.7