Searched refs:c0_current_ticks (Results 1 – 1 of 1) sorted by relevance
477 uint16_t c0_current_ticks = (uint16_t)Cy_MCWDT_GetCount(obj->base, CY_MCWDT_COUNTER0); in _cyhal_lptimer_set_delay_common() local480 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()[all …]