Go to the source code of this file.
Defines | |
#define | NUT_CPU_FREQ 14000000UL |
#define | SCALE 1 |
Timer emulation. | |
Functions | |
void * | NutTimerEmulation (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. | |
Variables | |
int | timer_count |
#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().
void * NutTimerEmulation | ( | void * | arg | ) |
Definition at line 70 of file ostimer.c.
References irq_signal, NutUnixRaiseInterrupt(), and SCALE.
Referenced by NutRegisterTimer().
int timer_count |