Home
last modified time | relevance | path

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

/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/onewire/
A Dmodule_onewire.c309 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_open() local
323 if (NULL == gpio_device) { in native_onewire_gpio_open()
328 ret = aos_hal_gpio_init(gpio_device); in native_onewire_gpio_open()
351 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_close() local
359 if (NULL == gpio_device) { in native_onewire_gpio_close()
379 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_reset() local
388 if (NULL == gpio_device) { in native_onewire_gpio_reset()
404 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_readbyte() local
412 if (NULL == gpio_device) { in native_onewire_gpio_readbyte()
429 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_writebyte() local
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/onewire/
A Dmodule_onewire.c318 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_open() local
336 if (NULL == gpio_device) { in native_onewire_gpio_open()
341 ret = aos_hal_gpio_init(gpio_device); in native_onewire_gpio_open()
371 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_close() local
380 if (NULL == gpio_device) { in native_onewire_gpio_close()
400 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_reset() local
409 if (NULL == gpio_device) { in native_onewire_gpio_reset()
426 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_readbyte() local
435 if (NULL == gpio_device) { in native_onewire_gpio_readbyte()
452 gpio_dev_t *gpio_device = NULL; in native_onewire_gpio_writebyte() local
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/gpio/
A Dmodule_gpio.c27 gpio_dev_t *gpio_device = NULL; in native_gpio_open() local
41 if (NULL == gpio_device) { in native_gpio_open()
72 gpio_dev_t *gpio_device = NULL; in native_gpio_close() local
80 if (NULL == gpio_device) { in native_gpio_close()
100 gpio_dev_t *gpio_device = NULL; in native_gpio_toggle() local
108 if (NULL == gpio_device) { in native_gpio_toggle()
126 gpio_dev_t *gpio_device = NULL; in native_gpio_write() local
134 if (NULL == gpio_device) { in native_gpio_write()
166 if (NULL == gpio_device) { in native_gpio_read()
251 if (NULL == gpio_device) { in native_gpio_on()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/gpio/
A Dmodule_gpio.c33 gpio_dev_t *gpio_device = NULL; in native_gpio_open() local
49 if (NULL == gpio_device) { in native_gpio_open()
88 gpio_dev_t *gpio_device = NULL; in native_gpio_close() local
98 if (NULL == gpio_device) { in native_gpio_close()
124 gpio_dev_t *gpio_device = NULL; in native_gpio_toggle() local
132 if (NULL == gpio_device) { in native_gpio_toggle()
150 gpio_dev_t *gpio_device = NULL; in native_gpio_write() local
159 if (NULL == gpio_device) { in native_gpio_write()
183 gpio_dev_t *gpio_device = NULL; in native_gpio_read() local
192 if (NULL == gpio_device) { in native_gpio_read()
[all …]
/AliOS-Things-master/components/py_engine/modules/driver/
A Dgpio.c32 gpio_dev_t *gpio_device; member
61 driver_obj->gpio_device = NULL; in gpio_obj_make_new()
79 if (driver_obj->gpio_device != NULL) { in obj_open()
85 gpio_dev_t *gpio_device = NULL; in obj_open() local
105 if (NULL == gpio_device) { in obj_open()
108 gpio_device = NULL; in obj_open()
111 driver_obj->gpio_device = gpio_device; in obj_open()
114 ret = aos_hal_gpio_init(gpio_device); in obj_open()
136 if (NULL == driver_obj->gpio_device) { in obj_close()
147 driver_obj->gpio_device = NULL; in obj_close()
[all …]
A Dboard_mgr.c70 static void board_set_gpio_default(gpio_dev_t *gpio_device) in board_set_gpio_default() argument
72 gpio_params_t *priv = (gpio_params_t *)gpio_device->priv; in board_set_gpio_default()
73 if (NULL == gpio_device || NULL == priv) { in board_set_gpio_default()
77 gpio_device->port = -1; in board_set_gpio_default()
78 gpio_device->config = OUTPUT_PUSH_PULL; in board_set_gpio_default()
79 gpio_device->gpioc = NULL; in board_set_gpio_default()
80 gpio_device->gpioc_index = 0; in board_set_gpio_default()
81 gpio_device->pin_index = 0; in board_set_gpio_default()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/ir/
A Dmodule_ir.c210 if (NULL == gpio_device) { in native_ir_open()
219 gpio_device->priv = NULL; in native_ir_open()
231 if (NULL == gpio_device) { in native_ir_open()
240 gpio_device->priv = NULL; in native_ir_open()
253 if (NULL == gpio_device) { in native_ir_open()
262 gpio_device->priv = NULL; in native_ir_open()
306 if (NULL == gpio_device) { in native_ir_close()
311 gpio_device->priv = NULL; in native_ir_close()
316 if (NULL == gpio_device) { in native_ir_close()
321 gpio_device->priv = NULL; in native_ir_close()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/ir/
A Dmodule_ir.c174 gpio_dev_t *gpio_device = NULL; in native_ir_open() local
188 if (NULL == gpio_device) { in native_ir_open()
192 ret = aos_hal_gpio_init(gpio_device); in native_ir_open()
197 gpio_device->priv = NULL; in native_ir_open()
212 gpio_dev_t *gpio_device = NULL; in native_ir_close() local
220 if (NULL == gpio_device) { in native_ir_close()
224 aos_hal_gpio_disable_irq(gpio_device); in native_ir_close()
225 gpio_device->priv = NULL; in native_ir_close()
290 gpio_dev_t *gpio_device = NULL; in native_ir_on() local
298 if (NULL == gpio_device) { in native_ir_on()
[all …]
/AliOS-Things-master/components/amp/services/board_mgr/
A Dboard_mgr.c77 static void board_set_gpio_default(gpio_dev_t *gpio_device) in board_set_gpio_default() argument
79 gpio_params_t *priv = (gpio_params_t *)gpio_device->priv; in board_set_gpio_default()
80 if (NULL == gpio_device || NULL == priv) in board_set_gpio_default()
85 gpio_device->port = -1; in board_set_gpio_default()
86 gpio_device->config = OUTPUT_PUSH_PULL; in board_set_gpio_default()
87 gpio_device->gpioc = NULL; in board_set_gpio_default()
88 gpio_device->gpioc_index = 0; in board_set_gpio_default()
89 gpio_device->pin_index = 0; in board_set_gpio_default()

Completed in 23 milliseconds