/* Returns the handle of the timer of the first allocated timer that has the specified parameter.  */
timer_handle_t TM_GetFirstTimerWithParam(void *param)
/* Returns the handle of the timer of the first allocated timer that has the specified parameter.  */
timer_handle_t TM_GetFirstTimerWithParam(void *param)
{
    list_element_handle_t list_element;
    list_handle_t timerHandle = &s_timermanager.timerHead;
    list_element = LIST_GetHead(timerHandle);
    while (NULL != list_element)
    {
        timer_handle_struct_t *th = (timer_handle_struct_t *)(void *)list_element;
        if (th->param == param)
        {
            return th;
        }
        list_element = LIST_GetNext(list_element);
    }
    return NULL;
}