include/sys/timer.h File Reference
Detailed Description
Timer management definitions.
Function Documentation
|
|
Loop for a specified number of milliseconds.
This call will not release the CPU and will not switch to another thread. However, because of absent thread switching, this delay time is very exact.
Use NutSleep() to avoid blocking the CPU, if no exact timing is needed.
- Parameters:
-
| ms | Delay time in milliseconds, maximum is 255. |
|
| void NutTimerInit |
( |
void |
|
) |
|
|
|
|
Timer 0 interrupt entry. Initialize system timer.
This function is automatically called by Nut/OS during system initialization.
Nut/OS uses on-chip timer 0 for its timer services. Applications should not modify any registers of this timer, but make use of the Nut/OS timer API. Timer 1 and timer 2 are available to applications. |