Lines Matching refs:pwm
71 HDF_LOGE("%s: pwm dumper is NULL", __func__);
88 int32_t HiPwmSetConfig(struct PwmDev *pwm, struct PwmConfig *config)
90 struct HiPwm *hp = (struct HiPwm *)pwm;
112 if (pwm->cfg.polarity != config->polarity && hp->supportPolarity) {
114 HDF_LOGI("%s: [HiPwmSetPolarity] done, polarity: %hhu -> %hhu.", __func__, pwm->cfg.polarity, config->polarity);
116 if (pwm->cfg.period != config->period) {
118 HDF_LOGI("%s: [HiPwmSetPeriod] done, period: %u -> %u", __func__, pwm->cfg.period, config->period);
120 if (pwm->cfg.duty != config->duty) {
122 HDF_LOGI("%s: [HiPwmSetDuty] done, duty: %u -> %u", __func__, pwm->cfg.duty, config->duty);
230 HDF_LOGI("%s: pwm init success", __func__);