Lines Matching full:timer
16 TIMER_TypeDef *timer; member
33 if (BUS_RegMaskedRead(&cfg->timer->CC[channel].CTRL, in pwm_gecko_set_cycles()
37 BUS_RegMaskedWrite(&cfg->timer->ROUTE, in pwm_gecko_set_cycles()
40 BUS_RegMaskedSet(&cfg->timer->ROUTE, 1 << channel); in pwm_gecko_set_cycles()
42 BUS_RegMaskedWrite(&cfg->timer->ROUTELOC0, in pwm_gecko_set_cycles()
46 BUS_RegMaskedSet(&cfg->timer->ROUTEPEN, 1 << channel); in pwm_gecko_set_cycles()
52 TIMER_InitCC(cfg->timer, channel, &compare_config); in pwm_gecko_set_cycles()
55 cfg->timer->CC[channel].CTRL |= (flags & PWM_POLARITY_INVERTED) ? in pwm_gecko_set_cycles()
58 TIMER_TopSet(cfg->timer, period_cycles); in pwm_gecko_set_cycles()
60 TIMER_CompareBufSet(cfg->timer, channel, pulse_cycles); in pwm_gecko_set_cycles()
82 TIMER_Init_TypeDef timer = TIMER_INIT_DEFAULT; in pwm_gecko_init() local
90 timer.prescale = cfg->prescale_enum; in pwm_gecko_init()
91 TIMER_Init(cfg->timer, &timer); in pwm_gecko_init()
102 .timer = (TIMER_TypeDef *)DT_REG_ADDR(DT_INST_PARENT(index)), \