Searched refs:uart_stream (Results 1 – 1 of 1) sorted by relevance
/system/bt/hci/src/ |
D | hci_hal_h4.c | 49 static eager_reader_t *uart_stream; variable 86 …uart_stream = eager_reader_new(uart_fd, &allocator_malloc, HCI_HAL_SERIAL_BUFFER_SIZE, SIZE_MAX, "… in hal_open() 87 if (!uart_stream) { in hal_open() 95 eager_reader_register(uart_stream, thread_get_reactor(thread), event_uart_has_bytes, NULL); in hal_open() 99 thread_set_priority(eager_reader_get_read_thread(uart_stream), HCI_THREAD_PRIORITY); in hal_open() 111 eager_reader_free(uart_stream); in hal_close() 128 return eager_reader_read(uart_stream, buffer, max_size); in read_data()
|