Lines Matching refs:CTRL
144 BITBAND_Peripheral(&(pcnt->CTRL), _PCNT_CTRL_RSTEN_SHIFT, 1); in PCNT_CounterReset()
147 BITBAND_Peripheral(&(pcnt->CTRL), _PCNT_CTRL_RSTEN_SHIFT, 0); in PCNT_CounterReset()
182 ctrl = pcnt->CTRL; in PCNT_CounterTopSet()
188 pcnt->CTRL = (ctrl & ~_PCNT_CTRL_MODE_MASK) | PCNT_CTRL_MODE_DISABLE; in PCNT_CounterTopSet()
226 pcnt->CTRL = ctrl; in PCNT_CounterTopSet()
260 tmp = pcnt->CTRL & ~_PCNT_CTRL_MODE_MASK; in PCNT_Enable()
265 pcnt->CTRL = tmp; in PCNT_Enable()
465 BITBAND_Peripheral(&(pcnt->CTRL), _PCNT_CTRL_RSTEN_SHIFT, 1); in PCNT_Init()
485 pcnt->CTRL = PCNT_CTRL_RSTEN; in PCNT_Init()
506 pcnt->CTRL = tmp; in PCNT_Init()
518 if ((pcnt->CTRL & _PCNT_CTRL_MODE_MASK) != PCNT_CTRL_MODE_DISABLE) in PCNT_Init()
523 pcnt->CTRL = tmp | PCNT_CTRL_MODE_DISABLE | PCNT_CTRL_RSTEN; in PCNT_Init()
531 BITBAND_Peripheral(&(pcnt->CTRL), _PCNT_CTRL_RSTEN_SHIFT, 0); in PCNT_Init()
540 pcnt->CTRL = tmp | (init->mode << _PCNT_CTRL_MODE_SHIFT); in PCNT_Init()
579 BITBAND_Peripheral(&(pcnt->CTRL), _PCNT_CTRL_RSTEN_SHIFT, 1); in PCNT_Reset()
587 pcnt->CTRL = _PCNT_CTRL_RESETVALUE | PCNT_CTRL_RSTEN; in PCNT_Reset()
591 BITBAND_Peripheral(&(pcnt->CTRL), _PCNT_CTRL_RSTEN_SHIFT, 0); in PCNT_Reset()