Searched refs:c0_new_ticks (Results 1 – 1 of 1) sorted by relevance
499 uint32_t c0_new_ticks = c0_current_ticks; in _cyhal_lptimer_set_delay_common() local500 while(((c0_new_ticks == c0_match) || in _cyhal_lptimer_set_delay_common()501 (c0_new_ticks == ((uint16_t)(c0_match + 1))) || in _cyhal_lptimer_set_delay_common()502 (c0_new_ticks == ((uint16_t)(c0_match + 2)))) in _cyhal_lptimer_set_delay_common()505 c0_new_ticks = (uint16_t)Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER0); in _cyhal_lptimer_set_delay_common()509 delay -= (c0_new_ticks >= c0_current_ticks) in _cyhal_lptimer_set_delay_common()510 ? (c0_new_ticks - c0_current_ticks) in _cyhal_lptimer_set_delay_common()511 : ((0xFFFFU - c0_current_ticks) + c0_new_ticks); in _cyhal_lptimer_set_delay_common()