Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_uart.c117 struct ec_host_cmd_uart_ctx *hc_uart = in rx_timeout() local
121 switch (hc_uart->state) { in rx_timeout()
140 LOG_ERR("Request timeout mishandled, state: %d", hc_uart->state); in rx_timeout()
143 res = uart_rx_disable(hc_uart->uart_dev); in rx_timeout()
144 res = uart_rx_enable(hc_uart->uart_dev, hc_uart->rx_ctx->buf, hc_uart->rx_buf_size, 0); in rx_timeout()
146 hc_uart->state = UART_HOST_CMD_READY_TO_RX; in rx_timeout()
151 struct ec_host_cmd_uart_ctx *hc_uart = user_data; in uart_callback() local
156 if (hc_uart->state == UART_HOST_CMD_READY_TO_RX) { in uart_callback()
157 hc_uart->rx_ctx->len = 0; in uart_callback()
158 hc_uart->state = UART_HOST_CMD_RECEIVING; in uart_callback()
[all …]