Call:      CancelTimer(int TimerNo) 

Input:    TimerNo

Output: Boolean 

 

In some cases, a timer is not needed anymore. To prevent unknown behaviour, it is better to cancel the timer that’s not needed anymore. The function always returns true. 

 

Example:

Status = CancelTimer(TimISR);