3 /*===========================================================================*
5 *===========================================================================*/
6 clock_t tmrs_clrtimer(tmrs
, tp
, next_time
)
7 timer_t
**tmrs
; /* pointer to timers queue */
8 timer_t
*tp
; /* timer to be removed */
11 /* Deactivate a timer and remove it from the timers queue.
18 prev_time
= (*tmrs
)->tmr_exp_time
;
22 tp
->tmr_exp_time
= TMR_NEVER
;
24 for (atp
= tmrs
; *atp
!= NULL
; atp
= &(*atp
)->tmr_next
) {
33 *next_time
= (*tmrs
)->tmr_exp_time
;