Searched refs:fin (Results 1 – 1 of 1) sorted by relevance
151 uint32_t perc, pulc, ps1, cnt_on, cnt_off, cfg, fin, fpwm, flags; in prog_pwm_fd() local154 fin = MEC5_PWM_FIN_HIGH; in prog_pwm_fd()158 fpwm = fin / perc; in prog_pwm_fd()160 fin = mec_hal_pcr_slow_clock_freq_get(); in prog_pwm_fd()161 if (!fin) { /* slow clock turned off! */ in prog_pwm_fd()165 perc = (uint32_t)(((uint64_t)fin * (uint64_t)period_cycles) / MEC5_PWM_FIN_HIGH); in prog_pwm_fd()166 pulc = (uint32_t)(((uint64_t)fin * (uint64_t)pulse_cycles) / MEC5_PWM_FIN_HIGH); in prog_pwm_fd()363 uint32_t fin = MEC5_PWM_FIN_HIGH; in mec_hal_pwm_get_freq_in() local366 fin = mec_hal_pcr_slow_clock_freq_get(); in mec_hal_pwm_get_freq_in()369 return fin; in mec_hal_pwm_get_freq_in()[all …]