Home
last modified time | relevance | path

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

/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/pwm/
A Dmodule_pwm.c27 pwm_dev_t *pwm_device = NULL; in native_pwm_open() local
41 if (NULL == pwm_device) { in native_pwm_open()
45 amp_debug(MOD_STR, "%s:%d:%d:%f\n", id, pwm_device->port, pwm_device->config.freq, in native_pwm_open()
48 ret = aos_hal_pwm_init(pwm_device); in native_pwm_open()
64 pwm_dev_t *pwm_device = NULL; in native_pwm_close() local
72 if (NULL == pwm_device) { in native_pwm_close()
90 pwm_dev_t *pwm_device = NULL; in native_pwm_getConfig() local
99 if (NULL == pwm_device) { in native_pwm_getConfig()
128 pwm_dev_t *pwm_device = NULL; in native_pwm_setConfig() local
136 if (NULL == pwm_device) { in native_pwm_setConfig()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/pwm/
A Dmodule_pwm.c31 pwm_dev_t *pwm_device = NULL; in native_pwm_open() local
51 if (NULL == pwm_device) { in native_pwm_open()
56 amp_debug(MOD_STR, "%s:%d:%d:%f\n", id, pwm_device->port, pwm_device->config.freq, in native_pwm_open()
59 ret = aos_hal_pwm_init(pwm_device); in native_pwm_open()
83 pwm_dev_t *pwm_device = NULL; in native_pwm_close() local
92 if (NULL == pwm_device) { in native_pwm_close()
111 pwm_dev_t *pwm_device = NULL; in native_pwm_getConfig() local
120 if (NULL == pwm_device) { in native_pwm_getConfig()
145 pwm_dev_t *pwm_device = NULL; in native_pwm_setConfig() local
161 if (NULL == pwm_device) { in native_pwm_setConfig()
[all …]
/AliOS-Things-master/components/py_engine/modules/driver/
A Dpwm.c49 pwm_dev_t *pwm_device = NULL; in obj_open() local
83 if (NULL == pwm_device) { in obj_open()
87 ret = aos_hal_pwm_init(pwm_device); in obj_open()
103 pwm_dev_t *pwm_device = NULL; in obj_close() local
116 if (NULL == pwm_device) { in obj_close()
121 ret = aos_hal_pwm_stop(pwm_device); in obj_close()
132 pwm_dev_t *pwm_device = NULL; in obj_setOption() local
145 if (NULL == pwm_device) { in obj_setOption()
162 ret = aos_hal_pwm_stop(pwm_device); in obj_setOption()
192 pwm_dev_t *pwm_device = NULL; in obj_getOption() local
[all …]
A Dboard_mgr.c516 static void board_set_pwm_default(pwm_dev_t *pwm_device) in board_set_pwm_default() argument
518 if (NULL == pwm_device) { in board_set_pwm_default()
521 pwm_device->port = 0; in board_set_pwm_default()
522 pwm_device->priv = NULL; in board_set_pwm_default()
523 pwm_device->config.freq = 1; in board_set_pwm_default()
524 pwm_device->config.duty_cycle = 100; in board_set_pwm_default()
/AliOS-Things-master/components/amp/services/board_mgr/
A Dboard_mgr.c720 static void board_set_pwm_default(pwm_dev_t *pwm_device) in board_set_pwm_default() argument
722 if (NULL == pwm_device) in board_set_pwm_default()
726 pwm_device->port = 0; in board_set_pwm_default()
727 pwm_device->priv = NULL; in board_set_pwm_default()
728 pwm_device->config.freq = 0; in board_set_pwm_default()
729 pwm_device->config.duty_cycle = 100; in board_set_pwm_default()

Completed in 11 milliseconds