Lines Matching refs:aos_pwm
27 aos_pwm_t aos_pwm; member
83 haas1000_pwm_t *pwm_dev = aos_container_of(pwm, haas1000_pwm_t, aos_pwm); in haas1000_pwm_unregister()
95 haas1000_pwm_t *pwm_dev = aos_container_of(pwm, haas1000_pwm_t, aos_pwm); in haas1000_pwm_shutdown()
96 haas1000_pwm_out_stop(pwm_dev, pwm_dev->aos_pwm.dev.id); in haas1000_pwm_shutdown()
104 haas1000_pwm_t *pwm_dev = aos_container_of(pwm, haas1000_pwm_t, aos_pwm); in haas1000_pwm_apply()
107 haas1000_pwm_out_config(pwm_dev, pwm_dev->aos_pwm.dev.id, in haas1000_pwm_apply()
110 haas1000_pwm_out_start(pwm_dev, pwm_dev->aos_pwm.dev.id); in haas1000_pwm_apply()
112 haas1000_pwm_out_stop(pwm_dev, pwm_dev->aos_pwm.dev.id); in haas1000_pwm_apply()
128 pwm_dev[i].aos_pwm.dev.id = i; in haas1000_pwm_init()
129 pwm_dev[i].aos_pwm.ops = &haas1000_pwm_ops; in haas1000_pwm_init()
130 ret = aos_pwm_register(&(pwm_dev[i].aos_pwm)); in haas1000_pwm_init()