Nut/OS  4.10.3
API Reference
ostimer_lpc2xxx.c File Reference
#include <cfg/arch.h>
#include <arch/arm/lpc2xxx.h>
#include <dev/irqreg.h>
Include dependency graph for ostimer_lpc2xxx.c:

Go to the source code of this file.


#define NUT_TICK_FREQ   1000UL
#define CLK_IN   14745600UL


typedef void(* PFNCT )(void)


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.

Define Documentation

#define NUT_TICK_FREQ   1000UL

Definition at line 49 of file ostimer_lpc2xxx.c.

Referenced by NutGetTickClock(), NutRegisterTimer(), and NutTimerMillisToTicks().

#define CLK_IN   14745600UL

Definition at line 56 of file ostimer_lpc2xxx.c.

Referenced by NutArchClockGet().

Typedef Documentation

typedef void(* PFNCT)(void)

Definition at line 61 of file ostimer_lpc2xxx.c.