Home
last modified time | relevance | path

Searched refs:uart_handle (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/util/stm32_flash/
Duart.c31 uart_handle_t *uart_handle = (uart_handle_t *)handle; in uart_write_data() local
35 if (write(uart_handle->fd, buffer, length + 1) == (length + 1)) in uart_write_data()
43 uart_handle_t *uart_handle = (uart_handle_t *)handle; in uart_write_cmd() local
50 if (write(uart_handle->fd, buffer, length) == length) in uart_write_cmd()
58 uart_handle_t *uart_handle = (uart_handle_t *)handle; in uart_read_data() local
62 ret = read(uart_handle->fd, data, length); in uart_read_data()
84 uart_handle_t *uart_handle = (uart_handle_t *)handle; in uart_init() local
100 fl = fcntl(uart_handle->fd, F_GETFL, 0); in uart_init()
103 fl = fcntl(uart_handle->fd, F_SETFL, fl & ~O_NDELAY); in uart_init()
106 if (tcgetattr(uart_handle->fd, &tio)) in uart_init()
[all …]
Dflash.c75 uart_handle_t uart_handle; in main() local
182 handle = &uart_handle.handle; in main()
183 uart_handle.fd = fd; in main()
Duart.h22 typedef struct uart_handle struct