Lines Matching refs:CTRL
110 regs->CTRL = MEC_BIT(MEC_BTMR_CTRL_RESET_Pos); in mec_hal_btimer_init()
111 regs->CTRL = ((freq_div - 1u) & MEC5_BTMR_PRESCALE_MSK0) << MEC_BTMR_CTRL_PRESCALE_Pos; in mec_hal_btimer_init()
117 regs->CTRL |= MEC_BIT(MEC_BTMR_CTRL_ENABLE_Pos); in mec_hal_btimer_init()
120 regs->CTRL |= MEC_BIT(MEC_BTMR_CTRL_RESTART_Pos); in mec_hal_btimer_init()
124 regs->CTRL |= MEC_BIT(MEC_BTMR_CTRL_CNT_DIR_Pos); in mec_hal_btimer_init()
132 regs->CTRL |= MEC_BIT(MEC_BTMR_CTRL_START_Pos); in mec_hal_btimer_init()
167 ctrl = regs->CTRL; in mec_hal_btimer_reset()
168 regs->CTRL = MEC_BIT(MEC_BTMR_CTRL_RESET_Pos); in mec_hal_btimer_reset()
172 regs->CTRL = (regs->CTRL & (uint32_t)~msk) | (ctrl & msk); in mec_hal_btimer_reset()
180 if (regs->CTRL & MEC_BIT(MEC_BTMR_CTRL_ENABLE_Pos)) { in mec_hal_btimer_is_enabled()
192 freqhz = (regs->CTRL & MEC_BTMR_CTRL_PRESCALE_Msk) >> MEC_BTMR_CTRL_PRESCALE_Pos; in mec_hal_btimer_freq()
228 uint32_t ctrl = regs->CTRL; in mec_hal_btimer_pre_and_reload()
234 regs->CTRL = ctrl; in mec_hal_btimer_pre_and_reload()
244 uint32_t ctrl = regs->CTRL; in mec_hal_btimer_start_load()
267 regs->CTRL = ctrl; in mec_hal_btimer_start_load()
275 if ((regs->CTRL & msk) == msk) { in mec_hal_btimer_is_started()
284 if (regs->CTRL & MEC_BIT(MEC_BTMR_CTRL_CNT_DIR_Pos)) { in mec_hal_btimer_is_counting_up()
294 regs->CTRL |= MEC_BIT(MEC_BTMR_CTRL_RESTART_Pos); in mec_hal_btimer_auto_restart()
296 regs->CTRL &= (uint32_t)~MEC_BIT(MEC_BTMR_CTRL_RESTART_Pos); in mec_hal_btimer_auto_restart()
302 if (regs->CTRL & MEC_BIT(MEC_BTMR_CTRL_RESTART_Pos)) { in mec_hal_btimer_is_auto_restart()
313 regs->CTRL |= MEC_BIT(MEC_BTMR_CTRL_HALT_Pos); in mec_hal_btimer_reload_run()
315 regs->CTRL &= (uint32_t)~MEC_BIT(MEC_BTMR_CTRL_HALT_Pos); in mec_hal_btimer_reload_run()
349 btimer_pm_save_buf[i] = (uint8_t)(regs->CTRL & MEC_BIT(MEC_BTMR_CTRL_ENABLE_Pos)); in mec_hal_btimer_pm_save_disable()
350 regs->CTRL &= (uint32_t)~MEC_BIT(MEC_BTMR_CTRL_ENABLE_Pos); in mec_hal_btimer_pm_save_disable()
360 regs->CTRL |= MEC_BIT(MEC_BTMR_CTRL_ENABLE_Pos); in mec_hal_btimer_pm_restore()