/Zephyr-latest/subsys/console/ |
D | tty.c | 10 #include <zephyr/console/tty.h> 12 static int tty_irq_input_hook(struct tty_serial *tty, uint8_t c); 13 static int tty_putchar(struct tty_serial *tty, uint8_t c); 17 struct tty_serial *tty = user_data; in tty_uart_isr() local 28 tty_irq_input_hook(tty, c); in tty_uart_isr() 33 if (tty->tx_get == tty->tx_put) { in tty_uart_isr() 39 uart_fifo_fill(dev, &tty->tx_ringbuf[tty->tx_get++], 1); in tty_uart_isr() 40 if (tty->tx_get >= tty->tx_ringbuf_sz) { in tty_uart_isr() 41 tty->tx_get = 0U; in tty_uart_isr() 43 k_sem_give(&tty->tx_sem); in tty_uart_isr() [all …]
|
D | CMakeLists.txt | 3 zephyr_sources_ifdef(CONFIG_CONSOLE_GETCHAR tty.c getchar.c)
|
D | getchar.c | 10 #include <zephyr/console/tty.h>
|
/Zephyr-latest/include/zephyr/console/ |
D | tty.h | 35 * @brief Initialize serial port object (classically known as tty). 37 * "tty" device provides support for buffered, interrupt-driven, 40 * access mode. After initialization, tty is in the "most conservative" 46 * @param tty tty device structure to initialize 52 int tty_init(struct tty_serial *tty, const struct device *uart_dev); 55 * @brief Set receive timeout for tty device. 60 * @param tty tty device structure 63 static inline void tty_set_rx_timeout(struct tty_serial *tty, int32_t timeout) in tty_set_rx_timeout() argument 65 tty->rx_timeout = timeout; in tty_set_rx_timeout() 69 * @brief Set transmit timeout for tty device. [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_native_tty_bottom.h | 2 * @brief "Bottom" of native tty uart driver 53 /* Note: None of these functions are public interfaces. They are internal to the native tty driver. 57 * @brief Check for available input on tty file descriptor 68 * @brief Opens tty port on the given pathname 79 * @brief Configure tty port 81 * @param fd File descriptor of the tty port.
|
D | uart_native_tty.c | 8 * To learn more see Native TTY section at: 34 /* File descriptor used for the tty device. */ 36 /* Absolute path to the tty device. */ 171 WARN("Could not convert uart config to native tty bottom cfg\n"); in native_tty_configure()
|
/Zephyr-latest/samples/subsys/ipc/openamp_rsc_table/ |
D | README.rst | 14 * `Linux rpmsg tty driver <https://elixir.bootlin.com/linux/latest/source/drivers/tty/rpmsg_tty.c>`_ 77 OpenAMP[remote] Linux TTY responder started 86 Running the rpmsg TTY demo 102 Open a Linux shell (minicom, ssh, etc.) and print the messages coming through the rpmsg-tty endpoin… 103 On the Linux console, send a message to Zephyr which answers with the :samp:`TTY {<addr>}:` prefix. 104 <addr> corresponds to the Zephyr rpmsg-tty endpoint address: 110 TTY 0x0401: Hello Zephyr 126 OpenAMP[remote] Linux TTY responder started 127 [Linux TTY] incoming msg: Hello Zephyr
|
/Zephyr-latest/samples/drivers/uart/native_tty/ |
D | README.rst | 1 .. zephyr:code-sample:: uart-native-tty 2 :name: Native TTY UART 5 Use native TTY driver to send and receive data between two UART-to-USB bridge dongles. 10 This sample demonstrates the usage of the Native TTY UART driver. It uses two 17 You can learn more about the Native TTY UART driver in the 18 :ref:`TTY UART <native_tty_uart>` section of the native_sim board 29 are in your system by running the command ``ls -l /dev/tty*``. If that is not
|
D | sample.yaml | 2 name: Native TTY sample
|
/Zephyr-latest/samples/drivers/uart/native_tty/boards/ |
D | native_sim.overlay | 4 compatible = "zephyr,native-tty-uart"; 11 compatible = "zephyr,native-tty-uart";
|
/Zephyr-latest/dts/bindings/serial/ |
D | zephyr,native-tty-uart.yaml | 1 description: Native TTY UART 5 compatible: "zephyr,native-tty-uart"
|
/Zephyr-latest/samples/subsys/ipc/openamp_rsc_table/src/ |
D | main_remote.c | 41 /* Add 1024 extra bytes for the TTY task stack for the "tx_buff" buffer. */ 287 LOG_INF("OpenAMP[remote] Linux TTY responder started"); in app_rpmsg_tty() 290 ret = rpmsg_create_ept(&tty_ept, rpdev, "rpmsg-tty", in app_rpmsg_tty() 294 LOG_ERR("[Linux TTY] Could not create endpoint: %d", ret); in app_rpmsg_tty() 301 LOG_INF("[Linux TTY] incoming msg: %.*s", in app_rpmsg_tty() 303 snprintf(tx_buff, 13, "TTY 0x%04x: ", tty_ept.addr); in app_rpmsg_tty() 314 LOG_INF("OpenAMP Linux TTY responder ended"); in app_rpmsg_tty()
|
/Zephyr-latest/tests/subsys/modem/backends/tty/ |
D | testcase.yaml | 5 modem.backends.tty:
|
/Zephyr-latest/boards/phytec/phyboard_polis/ |
D | phyboard_polis_mimx8mm6_m4.dts | 100 /* UART usually used from A53 Core (1st tty on Debug USB connector */ 107 /* UART of the M4 Core (2nd tty on Debug USB connector) */
|
/Zephyr-latest/include/zephyr/arch/posix/ |
D | posix_trace.h | 22 * Return 1 if traces to <output> will go to a tty.
|
/Zephyr-latest/tests/net/all/ |
D | check_net_options.sh | 46 echo "Total number of options : `get_options | wc -w`" > /dev/tty
|
/Zephyr-latest/subsys/modem/backends/ |
D | Kconfig | 5 bool "Modem TTY backend module"
|
/Zephyr-latest/subsys/usb/device/class/ |
D | Kconfig.cdc | 45 This is needed to prevent tty ECHO on Linux.
|
/Zephyr-latest/samples/subsys/zbus/uart_bridge/ |
D | decoder.py | 19 parser.add_argument("port", type=str, help='The tty or COM port to be used')
|
/Zephyr-latest/boards/arm/mps2/ |
D | board.cmake | 27 # To enable a host tty switch between serial and pty
|
/Zephyr-latest/samples/subsys/zbus/remote_mock/ |
D | remote_mock.py | 19 parser.add_argument("port", type=str, help='The tty or COM port to be used')
|
/Zephyr-latest/boards/native/native_sim/doc/ |
D | index.rst | 316 pseudo-tty. For more information refer to the section `PTTY UART`_. 318 **TTY driver (UART_NATIVE_TTY)** 321 `TTY UART`_. 542 where :file:`/dev/tty{<n>}` should be replaced with the actual TTY device. 557 TTY UART 565 with ``"zephyr,native-tty-uart"`` compatible property and ``okay`` status, such 572 compatible = "zephyr,native-tty-uart"; 592 The :zephyr:code-sample:`uart-native-tty` sample app provides a working example of the 720 Serial, :ref:`UART native TTY <native_tty_uart>`, :kconfig:option:`CONFIG_UART_NATIVE_TTY`, All
|
/Zephyr-latest/samples/subsys/usb/cdc_acm/src/ |
D | main.c | 140 LOG_DBG("tty fifo -> ringbuf %d bytes", rb_len); in interrupt_handler() 167 LOG_DBG("ringbuf -> tty fifo %d bytes", send_len); in interrupt_handler()
|
/Zephyr-latest/doc/develop/flash_debug/ |
D | nordic_segger.rst | 101 Recent versions of `ModemManager send AT commands to TTY-like devices`_; this 126 The serial port will appear as ``/dev/tty.usbmodemXXXX``. 247 .. _ModemManager send AT commands to TTY-like devices: https://bugs.freedesktop.org/show_bug.cgi?id…
|
/Zephyr-latest/samples/drivers/uart/native_tty/src/ |
D | main.c | 2 * @brief Native TTY UART sample
|