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.
17 prev_time
= (*tmrs
)->tmr_exp_time
;
21 tp
->tmr_exp_time
= TMR_NEVER
;
23 for (atp
= tmrs
; *atp
!= NULL
; atp
= &(*atp
)->tmr_next
) {
32 *next_time
= (*tmrs
)->tmr_exp_time
;