Lines Matching refs:ctrl
113 uint32_t ctrl = 0; in mec_hal_adc_activate() local
119 ctrl = regs->CTRL & ~msk; in mec_hal_adc_activate()
121 ctrl |= MEC_BIT(MEC_ADC_CTRL_ACTV_Pos); in mec_hal_adc_activate()
123 ctrl &= (uint32_t)~MEC_BIT(MEC_ADC_CTRL_ACTV_Pos); in mec_hal_adc_activate()
126 regs->CTRL = ctrl; in mec_hal_adc_activate()
351 uint32_t ctrl = MEC_ADC0->CTRL; in mec_hal_adc_pm_save_disable() local
354 if (ctrl & MEC_BIT(MEC_ADC_CTRL_ACTV_Pos)) { in mec_hal_adc_pm_save_disable()
361 ctrl &= MEC_BIT( MEC_ADC_CTRL_RSTART_Pos) | MEC_BIT(MEC_ADC_CTRL_PWR_SAVE_Pos); in mec_hal_adc_pm_save_disable()
362 MEC_ADC0->CTRL = ctrl; in mec_hal_adc_pm_save_disable()
367 uint32_t ctrl = MEC_ADC0->CTRL & (MEC_BIT( MEC_ADC_CTRL_RSTART_Pos) in mec_hal_adc_pm_restore() local
371 ctrl |= MEC_BIT(MEC_ADC_CTRL_ACTV_Pos); in mec_hal_adc_pm_restore()
374 MEC_ADC0->CTRL = ctrl; in mec_hal_adc_pm_restore()