Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/subsys/shell/backends/
Dshell_uart.c33 struct shell_uart_async *sh_uart = (struct shell_uart_async *)user_data; in async_callback() local
37 k_sem_give(&sh_uart->tx_sem); in async_callback()
40 uart_async_rx_on_rdy(&sh_uart->async_rx, evt->data.rx.buf, evt->data.rx.len); in async_callback()
41 sh_uart->common.handler(SHELL_TRANSPORT_EVT_RX_RDY, sh_uart->common.context); in async_callback()
45 uint8_t *buf = uart_async_rx_buf_req(&sh_uart->async_rx); in async_callback()
46 size_t len = uart_async_rx_get_buf_len(&sh_uart->async_rx); in async_callback()
52 uart_async_rx_on_buf_rel(&sh_uart->async_rx, buf); in async_callback()
55 atomic_inc(&sh_uart->pending_rx_req); in async_callback()
61 uart_async_rx_on_buf_rel(&sh_uart->async_rx, evt->data.rx_buf.buf); in async_callback()
70 static void uart_rx_handle(const struct device *dev, struct shell_uart_int_driven *sh_uart) in uart_rx_handle() argument
[all …]
/Zephyr-Core-3.7.0/tests/subsys/shell/shell_backend/src/
Dshell_backend_test.c18 const struct shell *sh_uart = shell_backend_get_by_name("shell_uart"); in ZTEST() local
25 zassert_equal_ptr(sh_uart, shell_backend_uart_get_ptr(), "Unexpected shell_uart backend"); in ZTEST()
28 zassert_equal_ptr(shell_backend_get(0), sh_dummy < sh_uart ? sh_dummy : sh_uart, in ZTEST()
30 zassert_equal_ptr(shell_backend_get(1), sh_dummy < sh_uart ? sh_uart : sh_dummy, in ZTEST()