Home
last modified time | relevance | path

Searched refs:c0_new_ticks (Results 1 – 1 of 1) sorted by relevance

/hal_infineon-latest/mtb-hal-cat1/source/
Dcyhal_lptimer.c499 uint32_t c0_new_ticks = c0_current_ticks; in _cyhal_lptimer_set_delay_common() local
500 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()