|
|
Timer function. Allocates a timer object. After a timer is allocated with this function, it must be set up with nosTimerSet and than started with nosTimerStart. - Returns:
- handle to the new timer object. NULL is returned on error.
- Parameters:
-
| name | Name of the new timer object to create. If the last character in the name is an asteriks (*), the operating system automatically assigns the timer an unique name (the registry feature must be enabled for this automatism). This parameter can be NULL if the nano layer registry feature is not used and will not be used in future. |
- Note:
- NOSCFG_FEATURE_TIMER must be defined to 1 to have timer support compiled in.
You must use nosTimerDestroy to destroy the flag object again.
Even if the function posTimerDestroy would work also, it is required to call nosTimerDestroy. Only this function removes the flag object from the registry.
Dependent of your configuration, this function can be defined as macro to decrease code size.
- See also:
- nosTimerSet, nosTimerStart, nosTimerDestroy
|