ostimer.c File Reference

Go to the source code of this file.

Defines

#define NUT_CPU_FREQ   14000000UL
#define SCALE   1
 Timer emulation.

Functions

void * NutTimerEmulation (void *arg)
void NutRegisterTimer (void(*handler)(void *))
 Initialize system timer.
uint32_t NutArchClockGet (int idx)
 Return the CPU clock in Hertz.
uint32_t NutGetTickClock (void)
 Return the number of system ticks per second.
uint32_t NutTimerMillisToTicks (uint32_t ms)
 Calculate system ticks for a given number of milliseconds.

Variables

int timer_count


Define Documentation

#define NUT_CPU_FREQ   14000000UL

Definition at line 53 of file ostimer.c.

#define SCALE   1

Timer emulation.

send interrupt signal to NUT thread on every 10ms tick

Definition at line 67 of file ostimer.c.

Referenced by NutTimerEmulation().


Function Documentation

void* NutTimerEmulation ( void *  arg  ) 

Definition at line 69 of file ostimer.c.

References irq_signal, NutUnixRaiseInterrupt(), and SCALE.

Referenced by NutRegisterTimer().


Variable Documentation


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