Searched refs:new_uart (Results 1 – 2 of 2) sorted by relevance
304 uart_dev_t *new_uart = aos_calloc(1, sizeof(*new_uart)); in board_parse_uart() local305 if (NULL == new_uart) { in board_parse_uart()310 *new_uart = device; in board_parse_uart()311 ret = board_add_new_item(MODULE_UART, uart_id, new_uart); in board_parse_uart()320 if (NULL != new_uart) { in board_parse_uart()321 aos_free(new_uart); in board_parse_uart()322 new_uart = NULL; in board_parse_uart()
339 uart_dev_t *new_uart = amp_calloc(1, sizeof(*new_uart)); in board_parse_uart() local340 if (NULL == new_uart) in board_parse_uart()346 *new_uart = device; in board_parse_uart()347 ret = board_add_new_item(MODULE_UART, uart_id, new_uart); in board_parse_uart()358 if (NULL != new_uart) in board_parse_uart()360 amp_free(new_uart); in board_parse_uart()361 new_uart = NULL; in board_parse_uart()
Completed in 6 milliseconds