Searched refs:tmr_cfg (Results 1 – 1 of 1) sorted by relevance
245 wrap_mxc_tmr_cfg_t tmr_cfg; in max32_counter_init() local250 tmr_cfg.pres = TMR_PRES_1; /* TMR_PRES_1 is 0 */ in max32_counter_init()253 tmr_cfg.pres = TMR_PRES_2 + (prescaler_index - 1); in max32_counter_init()255 tmr_cfg.mode = TMR_MODE_COMPARE; in max32_counter_init()256 tmr_cfg.cmp_cnt = cfg->info.max_top_value; in max32_counter_init()257 tmr_cfg.bitMode = 0; /* Timer Mode 32 bit */ in max32_counter_init()258 tmr_cfg.pol = 0; in max32_counter_init()260 tmr_cfg.clock = Wrap_MXC_TMR_GetClockIndex(cfg->clock_source); in max32_counter_init()261 if (tmr_cfg.clock < 0) { in max32_counter_init()273 ret = Wrap_MXC_TMR_Init(regs, &tmr_cfg); in max32_counter_init()[all …]