Nut/OS  5.0.5
API Reference
ostimer.c File Reference
#include <cfg/os.h>
#include <dev/irqreg.h>
#include <sys/atom.h>
#include <unistd.h>
Include dependency graph for ostimer.c:

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

Referenced by NutArchClockGet().

#define SCALE   1

Timer emulation.

send interrupt signal to NUT thread on every 10ms tick

Referenced by NutTimerEmulation().


Function Documentation

void* NutTimerEmulation ( void *  arg)

References irq_signal, NULL, NutUnixRaiseInterrupt(), and SCALE.

Referenced by NutRegisterTimer().

Here is the call graph for this function:


Variable Documentation