Home
last modified time | relevance | path

Searched refs:hal_pwm_device (Results 1 – 1 of 1) sorted by relevance

/bsp/allwinner/libraries/drivers/
A Ddrv_pwm.c34 struct rt_hal_pwm *hal_pwm_device = (struct rt_hal_pwm *)device; in set() local
38 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() local
48 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() local
77 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