Home
last modified time | relevance | path

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

/AliOS-Things-master/components/py_engine/modules/driver/
A Dboard_mgr.c492 spi_dev_t *new_spi = aos_calloc(1, sizeof(*new_spi)); in board_parse_spi() local
493 if (NULL == new_spi) { in board_parse_spi()
498 *new_spi = device; in board_parse_spi()
499 ret = board_add_new_item(MODULE_SPI, spi_id, new_spi); in board_parse_spi()
507 if (NULL != new_spi) { in board_parse_spi()
508 aos_free(new_spi); in board_parse_spi()
509 new_spi = NULL; in board_parse_spi()
/AliOS-Things-master/components/amp/services/board_mgr/
A Dboard_mgr.c557 spi_dev_t *new_spi = amp_calloc(1, sizeof(*new_spi)); in board_parse_spi() local
558 if (NULL == new_spi) in board_parse_spi()
564 *new_spi = device; in board_parse_spi()
565 ret = board_add_new_item(MODULE_SPI, spi_id, new_spi); in board_parse_spi()
575 if (NULL != new_spi) in board_parse_spi()
577 amp_free(new_spi); in board_parse_spi()
578 new_spi = NULL; in board_parse_spi()

Completed in 6 milliseconds