Home
last modified time | relevance | path

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

/AliOS-Things-master/components/py_engine/modules/driver/
A Dboard_mgr.c168 gpio_dev_t *new_gpio = aos_calloc(1, sizeof(*new_gpio)); in board_parse_gpio() local
169 if (NULL == new_gpio) { in board_parse_gpio()
174 memcpy(new_gpio, &device, sizeof(gpio_dev_t)); in board_parse_gpio()
175 ret = board_add_new_item(MODULE_GPIO, gpio_id, new_gpio); in board_parse_gpio()
183 if (NULL != new_gpio) { in board_parse_gpio()
184 aos_free(new_gpio); in board_parse_gpio()
185 new_gpio = NULL; in board_parse_gpio()
/AliOS-Things-master/components/amp/services/board_mgr/
A Dboard_mgr.c184 gpio_dev_t *new_gpio = amp_calloc(1, sizeof(*new_gpio)); in board_parse_gpio() local
185 if (NULL == new_gpio) in board_parse_gpio()
191 memcpy(new_gpio, &device, sizeof(gpio_dev_t)); in board_parse_gpio()
192 ret = board_add_new_item(MODULE_GPIO, gpio_id, new_gpio); in board_parse_gpio()
202 if (NULL != new_gpio) in board_parse_gpio()
204 amp_free(new_gpio); in board_parse_gpio()
205 new_gpio = NULL; in board_parse_gpio()

Completed in 6 milliseconds