Home
last modified time | relevance | path

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

/hal_infineon-3.5.0/mtb-hal-cat1/source/
Dcyhal_tcpwm_common.c359 …M_PWM_STATUS_COUNTER_RUNNING & Cy_TCPWM_PWM_GetStatus(obj->base, _CYHAL_TCPWM_CNT_NUMBER(obj->reso… in _cyhal_tcpwm_pm_callback()
441 uint32_t cnt_num = _CYHAL_TCPWM_CNT_NUMBER(tcpwm->resource); in _cyhal_tcpwm_irq_handler()
448 …uint32_t intrCause = Cy_TCPWM_GetInterruptStatusMasked(blockAddr, _CYHAL_TCPWM_CNT_NUMBER(tcpwm->r… in _cyhal_tcpwm_irq_handler()
457 Cy_TCPWM_ClearInterrupt(blockAddr, _CYHAL_TCPWM_CNT_NUMBER(tcpwm->resource), intrCause); in _cyhal_tcpwm_irq_handler()
506 Cy_TCPWM_Disable_Single(obj->base, _CYHAL_TCPWM_CNT_NUMBER(obj->resource)); in _cyhal_tcpwm_irq_handler()
508 Cy_TCPWM_PWM_Disable(obj->base, _CYHAL_TCPWM_CNT_NUMBER(obj->resource)); in _cyhal_tcpwm_irq_handler()
555 uint32_t old_mask = Cy_TCPWM_GetInterruptMask(tcpwm->base, _CYHAL_TCPWM_CNT_NUMBER(*resource)); in _cyhal_tcpwm_irq_handler()
559 Cy_TCPWM_ClearInterrupt(tcpwm->base, _CYHAL_TCPWM_CNT_NUMBER(*resource), ~old_mask & event); in _cyhal_tcpwm_irq_handler()
563 if (Cy_TCPWM_GetInterruptStatus(tcpwm->base, _CYHAL_TCPWM_CNT_NUMBER(*resource)) == 0 || enable) in _cyhal_tcpwm_irq_handler()
566 …Cy_TCPWM_SetInterruptMask(tcpwm->base, _CYHAL_TCPWM_CNT_NUMBER(*resource), enable ? (old_mask | ev… in _cyhal_tcpwm_irq_handler()
[all …]
Dcyhal_pwm.c125 Cy_TCPWM_PWM_SetCompare0(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), 0u); in cyhal_pwm_set_period_and_compare()
126 …Cy_TCPWM_PWM_SetPeriod0(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), period - 1u… in cyhal_pwm_set_period_and_compare()
140 _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)); in cyhal_pwm_set_period_and_compare()
157 …Cy_TCPWM_PWM_SetCompare0(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), new_compar… in cyhal_pwm_set_period_and_compare()
158 …if (Cy_TCPWM_PWM_GetCounter(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)) >= new_… in cyhal_pwm_set_period_and_compare()
160 Cy_TCPWM_PWM_SetCounter(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), 0); in cyhal_pwm_set_period_and_compare()
272 …cy_rslt_t result = Cy_TCPWM_PWM_Init(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)… in _cyhal_pwm_init_hw()
277 …uint32_t cntr_asym_swapped_reg_val = (0 == TCPWM_GRP_CNT_GET_GRP(_CYHAL_TCPWM_CNT_NUMBER(obj->tcpw… in _cyhal_pwm_init_hw()
281 …TCPWM_GRP_CNT_TR_PWM_CTRL(obj->tcpwm.base, TCPWM_GRP_CNT_GET_GRP(_CYHAL_TCPWM_CNT_NUMBER(obj->tcpw… in _cyhal_pwm_init_hw()
282 _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)) = cntr_asym_swapped_reg_val; in _cyhal_pwm_init_hw()
[all …]
Dcyhal_timer.c144 …result = Cy_TCPWM_Counter_Init(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), conf… in _cyhal_timer_init_hw()
150 Cy_TCPWM_Counter_Enable(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)); in _cyhal_timer_init_hw()
269 …uint32_t old_mask = Cy_TCPWM_GetInterruptMask(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.… in cyhal_timer_configure()
270 … Cy_TCPWM_Counter_DeInit(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), &config); in cyhal_timer_configure()
271 …rslt = (cy_rslt_t)Cy_TCPWM_Counter_Init(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resour… in cyhal_timer_configure()
272 Cy_TCPWM_Counter_Enable(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)); in cyhal_timer_configure()
273 …Cy_TCPWM_SetInterruptMask(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), old_mask); in cyhal_timer_configure()
357 Cy_TCPWM_Counter_Enable(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)); in cyhal_timer_start()
359 Cy_TCPWM_TriggerStart_Single(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)); in cyhal_timer_start()
361 Cy_TCPWM_TriggerStart(obj->tcpwm.base, (1 << _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource))); in cyhal_timer_start()
[all …]
Dcyhal_quaddec.c74 #define _CYHAL_CNT_NUM _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource)
/hal_infineon-3.5.0/mtb-hal-cat1/include_pvt/
Dcyhal_tcpwm_common.h56 #define _CYHAL_TCPWM_CNT_NUMBER(resource) ((resource).channel_num) macro
65 … #define _CYHAL_TCPWM_CNT_NUMBER(resource) (((resource).block_num << 8) | (resource).channel_num)
69 …#define _CYHAL_TCPWM_CNT_NUMBER(resource) ((((resource).block_num % _CYHAL_TCPWM_MAX_GRPS_PER_IP_B…
75 #define _CYHAL_TCPWM_CNT_NUMBER(resource) ((resource).channel_num)