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. | |
| u_long | NutGetTickCount (void) |
| Return the number of timer ticks. | |
| u_long | NutGetSeconds (void) |
| Return the seconds counter value. | |
| u_long | NutGetMillis (void) |
| Return the milliseconds counter value. | |
Variables | |
| NUTTIMERINFO *volatile | nutTimerList |
| Linked list of all system timers. | |
| NUTTIMERINFO *volatile | nutTimerPool |
|
|
Timer type.
|
|
|
Linked list of all system timers.
|
|
|
This pool is used to collect released memory from elapsed timers. It's required because we can't free memory in interrupt context. |