Searched refs:hal_pwm_device (Results 1 – 1 of 1) sorted by relevance
34 struct rt_hal_pwm *hal_pwm_device = (struct rt_hal_pwm *)device; in set() local38 hal_pwm_device->period[configuration->channel] = configuration->period; in set()39 hal_pwm_device->pulse[configuration->channel] = configuration->pulse; in set()46 struct rt_hal_pwm *hal_pwm_device = (struct rt_hal_pwm *)device; in get() local48 configuration->period = hal_pwm_device->period[configuration->channel]; in get()49 configuration->pulse = hal_pwm_device->pulse[configuration->channel]; in get()60 struct rt_hal_pwm *hal_pwm_device = (struct rt_hal_pwm *)device; in control() local77 pwm_cfg.duty_ns = hal_pwm_device->pulse[configuration->channel]; in control()79 hal_pwm_device->status = 1; in control()92 hal_pwm_device->status = 0; in control()[all …]
Completed in 5 milliseconds