Lines Matching refs:period
100 if (config->period < PWM_MIN_PERIOD) {
101 HDF_LOGE("%s: period %u is not support, min period %d", __func__, config->period, PWM_MIN_PERIOD);
105 if (config->duty < 1 || config->duty > config->period) {
106 HDF_LOGE("%s: duty %u is not support, duty must in [1, period = %u].",
107 __func__, config->duty, config->period);
116 if (pwm->cfg.period != config->period) {
117 HiPwmSetPeriod(hp->reg, config->period);
118 HDF_LOGI("%s: [HiPwmSetPeriod] done, period: %u -> %u", __func__, pwm->cfg.period, config->period);
133 HDF_LOGI("%s: set PwmConfig done: number %u, period %u, duty %u, polarity %hhu, enable %hhu.",
134 __func__, config->number, config->period, config->duty, config->polarity, config->status);
182 hp->dev.cfg.period = PWM_DEFAULT_PERIOD;
198 HDF_LOGI("%s: set PwmConfig: number %u, period %u, duty %u, polarity %hhu, enable %hhu.", __func__,
199 hp->dev.cfg.number, hp->dev.cfg.period, hp->dev.cfg.duty, hp->dev.cfg.polarity, hp->dev.cfg.status);