nut/include/sys/timer.h File Reference


Detailed Description

Implementation of an asynchronous (realtime) timer.

Author:
Mario Strasser <mast@gmx.net>

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

Data Structures

struct  _NUTTIMERINFO
 Timer information structure. More...

Defines

#define NUT_CACHE_LVALID   0x80000000UL
#define NUT_HWCLK_CPU   0
#define NUT_HWCLK_MAX   NUT_HWCLK_PERIPHERAL
#define NUT_HWCLK_PERIPHERAL   NUT_HWCLK_CPU
#define NutClockGet(i)   NutGetCpuClock()
#define TM_ONESHOT   0x01

Typedefs

typedef _NUTTIMERINFO NUTTIMERINFO
 Timer type.

Functions

int NutClockSet (int idx, uint32_t freq)
void NutDelay (uint8_t ms)
uint32_t NutGetCpuClock (void)
uint32_t NutGetMillis (void)
uint32_t NutGetSeconds (void)
uint32_t NutGetTickCount (void)
void NutMicroDelay (uint32_t us)
void NutSleep (uint32_t ms)
NUTTIMERINFONutTimerCreate (uint32_t ticks, void(*callback)(HANDLE, void *), void *arg, uint8_t flags)
__BEGIN_DECLS void NutTimerInit (void)
void NutTimerInsert (NUTTIMERINFO *tn)
void NutTimerProcessElapsed (void)
HANDLE NutTimerStart (uint32_t ms, void(*callback)(HANDLE, void *), void *arg, uint8_t flags)
HANDLE NutTimerStartTicks (uint32_t ticks, void(*callback)(HANDLE, void *), void *arg, uint8_t flags)
void NutTimerStop (HANDLE handle)

Variables

NUTTIMERINFOnutTimerList


Generated on Wed Apr 29 11:12:30 2009 for BTnut System Software by doxygen 1.5.1