Searched refs:pwm_cfg (Results 1 – 1 of 1) sorted by relevance
41 wrap_mxc_tmr_cfg_t pwm_cfg; in api_set_cycles() local46 pwm_cfg.pres = TMR_PRES_1; /* TMR_PRES_1 is 0 */ in api_set_cycles()49 pwm_cfg.pres = TMR_PRES_2 + (prescaler_index - 1); in api_set_cycles()51 pwm_cfg.mode = TMR_MODE_PWM; in api_set_cycles()52 pwm_cfg.cmp_cnt = period_cycles; in api_set_cycles()53 pwm_cfg.bitMode = 0; /* Timer Mode 32 bit */ in api_set_cycles()58 pwm_cfg.pol = (flags & PWM_POLARITY_MASK) ? 1 : 0; in api_set_cycles()60 pwm_cfg.pol = (flags & PWM_POLARITY_MASK) ? 0 : 1; in api_set_cycles()63 pwm_cfg.clock = Wrap_MXC_TMR_GetClockIndex(cfg->perclk.clk_src); in api_set_cycles()64 if (pwm_cfg.clock < 0) { in api_set_cycles()[all …]