#include <sys/device.h>
Go to the source code of this file.
Data Structures | |
struct | _NUTTIMERINFO |
Timer information structure. More... | |
Typedefs | |
typedef _NUTTIMERINFO | NUTTIMERINFO |
Timer type. | |
Functions | |
void | NutTimerInit (void) |
Initialize system timer. | |
HANDLE | NutTimerStart (u_long ms, void(*callback)(HANDLE, void *), void *arg, u_char flags) |
Create an asynchronous timer. | |
void | NutTimerStop (HANDLE handle) |
Stop a specified timer. | |
void | NutTimerStopAsync (HANDLE handle) |
Asynchronously stop a specified timer. | |
void | NutSleep (u_long ms) |
Temporarily suspends the current thread. | |
void | NutDelay (u_char ms) |
Loop for a specified number of milliseconds. | |
u_long | NutGetCpuClock (void) |
Return the CPU clock in Hertz. | |
Variables | |
NUTTIMERINFO *volatile | nutTimerList |
Linked list of all system timers. | |
NUTTIMERINFO *volatile | nutTimerPool |
|
This pool is used to collect released memory from elapsed timers. It's required because we can't free memory in interrupt context. |