Lines Matching refs:c0_current_ticks
477 uint16_t c0_current_ticks = (uint16_t)Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER0); in _cyhal_lptimer_set_delay_common() local
480 while (((((uint16_t)(c0_old_match - 1)) == c0_current_ticks) || in _cyhal_lptimer_set_delay_common()
481 (c0_old_match == c0_current_ticks) || in _cyhal_lptimer_set_delay_common()
482 (((uint16_t)(c0_old_match + 1)) == c0_current_ticks)) && (timeout != 0UL)) in _cyhal_lptimer_set_delay_common()
484 c0_current_ticks = (uint16_t)Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER0); in _cyhal_lptimer_set_delay_common()
494 uint16_t c0_match = (uint16_t)(c0_current_ticks + delay); in _cyhal_lptimer_set_delay_common()
499 uint32_t c0_new_ticks = c0_current_ticks; 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()
513 c0_match = (uint16_t)(c0_current_ticks + delay); in _cyhal_lptimer_set_delay_common()