Home
last modified time | relevance | path

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

/hal_ambiq-latest/mcu/apollo4p/hal/
Dam_hal_timer.c59 uint32_t ui32ConfigCtrl, ui32ConfigMode; in internal_timer_config() local
106 ui32ConfigCtrl = _VAL2FLD(TIMER_CTRL0_TMR0CLK, psTimerConfig->eInputClock); in internal_timer_config()
107 ui32ConfigCtrl |= _VAL2FLD(TIMER_CTRL0_TMR0FN, psTimerConfig->eFunction); in internal_timer_config()
108 ui32ConfigCtrl |= _VAL2FLD(TIMER_CTRL0_TMR0POL1, psTimerConfig->bInvertOutput1); in internal_timer_config()
109 ui32ConfigCtrl |= _VAL2FLD(TIMER_CTRL0_TMR0POL0, psTimerConfig->bInvertOutput0); in internal_timer_config()
110 ui32ConfigCtrl |= _VAL2FLD(TIMER_CTRL0_TMR0TMODE, psTimerConfig->eTriggerType); in internal_timer_config()
111 ui32ConfigCtrl |= _VAL2FLD(TIMER_CTRL0_TMR0LMT, ui32TimerLimit); in internal_timer_config()
112 ui32ConfigCtrl |= _VAL2FLD(TIMER_CTRL0_TMR0EN, 0); in internal_timer_config()
124 TIMERn(ui32TimerNumber)->CTRL0 = ui32ConfigCtrl; in internal_timer_config()