/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 11 UART to USB bridge dongles that are wired together, writing demo data to one 15 :zephyr_file:`samples/drivers/uart/native_tty`. 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 24 #. Two UART to USB bridge dongles. Each dongle must have its TX pin wired to the 40 :zephyr-app: samples/drivers/uart/native_tty [all …]
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_bus_uart.c | 19 #include <zephyr/drivers/uart.h> 47 static void eswifi_iface_uart_flush(struct eswifi_uart_data *uart) in eswifi_iface_uart_flush() argument 51 while (uart_fifo_read(uart->dev, &c, 1) > 0) { in eswifi_iface_uart_flush() 59 struct eswifi_uart_data *uart = &eswifi_uart0; /* Static instance */ in eswifi_iface_uart_isr() local 67 while (uart_irq_update(uart->dev) && in eswifi_iface_uart_isr() 68 uart_irq_rx_ready(uart->dev)) { in eswifi_iface_uart_isr() 70 partial_size = ring_buf_put_claim(&uart->rx_rb, &dst, in eswifi_iface_uart_isr() 75 eswifi_iface_uart_flush(uart); in eswifi_iface_uart_isr() 79 rx = uart_fifo_read(uart->dev, dst, partial_size); in eswifi_iface_uart_isr() 89 ring_buf_put_finish(&uart->rx_rb, total_size); in eswifi_iface_uart_isr() [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_sam.c | 11 * @brief UART driver for Atmel SAM MCU family. 19 #include <zephyr/drivers/uart.h> 26 Uart *regs; 49 Uart * const uart = cfg->regs; in uart_sam_poll_in() local 51 if (!(uart->UART_SR & UART_SR_RXRDY)) { in uart_sam_poll_in() 56 *c = (unsigned char)uart->UART_RHR; in uart_sam_poll_in() 65 Uart * const uart = cfg->regs; in uart_sam_poll_out() local 68 while (!(uart->UART_SR & UART_SR_TXRDY)) { in uart_sam_poll_out() 72 uart->UART_THR = (uint32_t)c; in uart_sam_poll_out() 79 volatile Uart * const uart = cfg->regs; in uart_sam_err_check() local [all …]
|
D | uart_imx.c | 10 * @brief Driver for UART on NXP IMX family processor. 21 #include <zephyr/drivers/uart.h> 47 * @brief Initialize UART channel 50 * It is assumed that this function is called only once per UART. 52 * @param dev UART device struct 58 UART_Type *uart = UART_STRUCT(dev); in uart_imx_init() local 66 /* Setup UART init structure */ in uart_imx_init() 81 initConfig.clockRate = get_uart_clock_freq(uart); in uart_imx_init() 83 UART_Init(uart, &initConfig); in uart_imx_init() 85 /* Set UART built-in hardware FIFO Watermark. */ in uart_imx_init() [all …]
|
D | uart_numaker.c | 10 #include <zephyr/drivers/uart.h> 22 UART_T *uart; member 49 count = UART_Read(config->uart, c, 1); in uart_numaker_poll_in() 61 UART_Write(config->uart, &c, 1); in uart_numaker_poll_out() 67 UART_T *uart = config->uart; in uart_numaker_err_check() local 68 uint32_t flags = uart->FIFOSTS; in uart_numaker_err_check() 89 uart->FIFOSTS = (UART_FIFOSTS_BIF_Msk | UART_FIFOSTS_FEF_Msk | in uart_numaker_err_check() 161 UART_DisableFlowCtrl(config->uart); in uart_numaker_configure() 163 UART_EnableFlowCtrl(config->uart); in uart_numaker_configure() 170 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, stopbits); in uart_numaker_configure() [all …]
|
D | uart_stellaris.c | 1 /* stellarisUartDrv.c - Stellaris UART driver */ 12 * @brief Driver for Stellaris UART 14 * Driver for Stellaris UART found namely on TI LM3S6965 board. It is similar to 16 * It is also register-compatible with the UART found on TI CC2650 SoC, 28 #include <zephyr/drivers/uart.h> 34 /* Stellaris UART module */ 72 volatile struct _uart *uart; member 115 static DEVICE_API(uart, uart_stellaris_driver_api); 120 * This routine set the given baud rate for the UART. 122 * @param dev UART device struct [all …]
|
D | uart_sifive.c | 8 * @brief UART driver for the SiFive Freedom Processor 15 #include <zephyr/drivers/uart.h> 80 * @param dev UART device struct 86 volatile struct uart_sifive_regs_t *uart = DEV_UART(dev); in uart_sifive_poll_out() local 89 while (uart->tx & TXDATA_FULL) { in uart_sifive_poll_out() 92 uart->tx = (int)c; in uart_sifive_poll_out() 98 * @param dev UART device struct 105 volatile struct uart_sifive_regs_t *uart = DEV_UART(dev); in uart_sifive_poll_in() local 106 uint32_t val = uart->rx; in uart_sifive_poll_in() 122 * @param dev UART device struct [all …]
|
D | Kconfig.native_posix | 4 bool "UART driver for native_sim/posix" 9 This enables a UART driver for the POSIX ARCH with up to 2 UARTs. 10 For the first UART port, the driver can be configured 12 one dedicated pseudoterminal for that UART. 17 prompt "Native UART Port 0 connection" 21 bool "Connect the UART to its own pseudo terminal" 23 Connect this UART to its own pseudoterminal. This is the preferred 29 bool "Connect the UART to the invoking shell stdin/stdout" 31 Connect this UART to the stdin & stdout of the calling shell/terminal 34 Note that other, non UART messages, will also be printed to the [all …]
|
D | uart_b91.c | 11 #include <zephyr/drivers/uart.h> 20 /* Get UART instance */ 24 /* UART TX buffer count max value */ 27 /* UART TX/RX data registers size */ 44 /* B91 UART registers structure */ 59 /* B91 UART data structure */ 70 /* B91 UART config structure */ 109 static inline uint8_t uart_b91_get_tx_bufcnt(volatile struct uart_b91_t *uart) in uart_b91_get_tx_bufcnt() argument 111 return (uart->bufcnt & FLD_UART_TX_BUF_CNT) >> FLD_UART_TX_BUF_CNT_OFFSET; in uart_b91_get_tx_bufcnt() 115 static inline uint8_t uart_b91_get_rx_bufcnt(volatile struct uart_b91_t *uart) in uart_b91_get_rx_bufcnt() argument [all …]
|
D | Kconfig.emul | 1 # Emulated UART configuration options 7 bool "Emulated UART driver [EXPERIMENTAL]" 17 Enable the emulated UART driver. 22 int "UART emulated devices' init priority" 25 The init priority of emulated driver on the UART bus. 28 int "UART emulator work queue stack size" 32 int "UART emulator work queue thread priority"
|
D | Kconfig.bt | 5 bool "UART over NUS Bluetooth LE" 12 Enable the UART over NUS Bluetooth driver, which can be used to pipe 13 serial data over Bluetooth LE GATT using NUS (Nordic UART Service). 18 int "UART NUS Work-queue Priority" 21 Select UART NUS Work-queue priority based on the application context. 24 int "UART NUS Work-queue Stack Size" 27 Set UART NUS Work-queue Stack-size based on the application context.
|
D | uart_bt.c | 8 #include <zephyr/drivers/uart.h> 41 } uart; member 55 if (!ring_buf_is_empty(dev_data->uart.tx_ringbuf)) { in bt_notif_enabled() 56 k_work_reschedule_for_queue(&nus_work_queue, &dev_data->uart.tx_work, K_NO_WAIT); in bt_notif_enabled() 69 struct ring_buf *ringbuf = dev_data->uart.rx_ringbuf; in bt_received() 80 k_work_submit_to_queue(&nus_work_queue, &dev_data->uart.cb_work); in bt_received() 117 struct uart_bt_data *dev_data = CONTAINER_OF(work, struct uart_bt_data, uart.cb_work); in cb_work_handler() 119 if (dev_data->uart.callback.cb) { in cb_work_handler() 120 dev_data->uart.callback.cb( in cb_work_handler() 121 dev_data->uart.callback.dev, in cb_work_handler() [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/renode/ |
D | litex-vexriscv-tflite.robot | 14 Wait For Line On Uart RING: 24 Wait For Line On Uart ${SPACE*10}* 25 Wait For Line On Uart ${SPACE*7}*${SPACE*5}* 26 Wait For Line On Uart ${SPACE*5}*${SPACE*9}* 27 Wait For Line On Uart ${SPACE*4}*${SPACE*11}* 28 Wait For Line On Uart ${SPACE*5}*${SPACE*9}* 29 Wait For Line On Uart ${SPACE*7}*${SPACE*5}* 30 Wait For Line On Uart ${SPACE*10}* 33 Wait For Line On Uart SLOPE: 44 Wait For Line On Uart ${SPACE*8}* [all …]
|
/Zephyr-latest/tests/drivers/uart/uart_basic_api/ |
D | testcase.yaml | 2 drivers.uart.basic_api: 5 - uart 10 drivers.uart.basic_api.wide: 15 - uart 23 drivers.uart.basic_api.poll: 27 - uart 32 drivers.uart.basic_api.shell: 37 - uart 42 drivers.uart.basic_api.cdc_acm: 52 drivers.uart.basic_api.shell_ke17z9_uart: [all …]
|
/Zephyr-latest/tests/drivers/uart/uart_elementary/ |
D | README.txt | 1 The purpose of this test is to validate basic UART driver functions, 3 UART interrupt mode is used for the tests purpose. 6 For single uart configuration - UART0 TX connected to RX and CTS to RTS 7 For dual uart configuratiom - UART0 and UART1 TXs and RXs cross-connected 10 - UART configuration, 11 - UART error check, 12 - UART callback setup, 13 - Dual UART transmission with matched and mismatched configurations
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/ |
D | Kconfig.uart | 5 # The Kconfig file is dedicated to UART transport of MCUmgr 13 bool "UART mcumgr SMP transport" 19 Enables handling of SMP commands received over UART. This is a 21 commands to be received over UART without requiring an additional 29 bool "Use async UART API when available" 31 The option enables use of UART async API when available for selected mcumgr uart port. 36 int "Number of async RX UART buffers" 40 The asynchronous UART API requires registering RX buffers for received data; when the RX 46 int "Size of single async RX UART buffer" 56 int "UART SMP MTU" [all …]
|
/Zephyr-latest/drivers/hdlc_rcp_if/ |
D | Kconfig.uart | 1 # Configuration options for NXP HDLC RCP UART communication Interface 8 # HDLC UART communication Interface used by Zephyr running Openthread RCP host 12 bool "UART HDLC interface for Zephyr Openthread RCP host" 17 int "Set HDLC RCP IF UART RX ring buffer size" 20 RX buffer size for the OpenThread HDLC host UART. 23 int "Set HDLC RCP IF UART TX ring buffer size" 26 TX buffer size for the OpenThread HDLC host UART.
|
/Zephyr-latest/subsys/logging/backends/ |
D | Kconfig.uart | 5 bool "UART backend" 10 When enabled backend is using UART to output logs. 15 bool "Use UART Asynchronous API" 25 RAM before log_output_flush is automatically called on the UART backend. The buffer 32 bool "Automatically start UART backend" 35 When enabled automatically start the UART logging backend on 39 backend = UART 40 backend-str = uart 57 Dictionary-based logging output in hexadecimal. Supported only for UART backend.
|
/Zephyr-latest/subsys/modem/backends/ |
D | Kconfig | 10 bool "Modem UART backend module" 18 bool "Modem UART backend module interrupt driven implementation" 22 bool "Modem UART backend module async implementation" 28 int "Modem ISR UART delay between first byte received and RECEIVE_READY pipe event" 36 (<UART receive_buf_size> / 2) / (<UART baud rate> / <UART bits per byte>) * <ms per sec> 44 int "Modem async UART transmit timeout in milliseconds" 48 int "Modem async UART receive idle timeout in milliseconds"
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | cap.rst | 48 uart:~$ cap_acceptor sirk 00112233445566778899aabbccddeeff 58 uart:~$ cap_acceptor get_sirk 81 uart:~$ cap_initiator --help 126 uart:~$ cap_initiator discover 134 uart:~$ bap discover 177 uart:~$ cap_initiator unicast_start sinks 1 sources 0 conns all 188 uart:~$ cap_initiator unicast_stop all 289 uart:~$ cap_commander discover 298 uart:~$ vcp_vol_ctlr discover 300 uart:~$ cap_commander change_volume 15 [all …]
|
D | bap.rst | 99 uart:~$ bt init 100 uart:~$ bap init 101 uart:~$ bt connect <address> 102 uart:~$ gatt exchange-mtu 103 uart:~$ bap discover sink 104 uart:~$ bap config sink 0 105 uart:~$ bap qos 106 uart:~$ bap enable 107 uart:~$ bap connect 113 uart:~$ bt init [all …]
|
/Zephyr-latest/samples/bluetooth/hci_uart_async/ |
D | sample.yaml | 2 name: Bluetooth HCI UART Async 4 This sample is a batteries-included example of a Bluetooth HCI UART 7 It demonstrates a possible implementation of an HCI UART (H4) 9 over a UART. 11 This implementation is based on the Zephyr Asynchoronous UART API. 18 - uart
|
/Zephyr-latest/drivers/modem/ |
D | modem_iface_uart.h | 2 * @brief Modem interface for UART header file. 4 * Modem interface UART handling for modem context driver. 41 * @brief Init modem interface device for UART 43 * @details This can be called after the init if the UART is changed. 46 * @param dev_name: name of the UART device to use 54 * @brief Modem uart interface configuration 58 * @param dev UART device used for interface 69 * @brief Initialize modem interface for UART 72 * @param data UART data structure used by the modem interface 73 * @param config UART configuration structure used to configure UART data structure [all …]
|
/Zephyr-latest/tests/drivers/uart/uart_async_api/ |
D | testcase.yaml | 8 - uart 10 drivers.uart.async_api: 16 drivers.uart.wide: 28 drivers.uart.async_api.nrf_uarte_new: 42 drivers.uart.async_api.nrf_uart: 52 drivers.uart.async_api.rtt: 65 drivers.uart.async_api.lpuart: 69 drivers.uart.async_api.lpuart.rt_nocache: 77 drivers.uart.async_api.sam0: 92 drivers.uart.async_api.nocache_mem: [all …]
|
/Zephyr-latest/tests/bsim/ |
D | ci.uart.sh | 5 # This script runs the Babblesim CI UART tests. 14 echo "UART: Single device tests" 16 ${ZEPHYR_BASE}/scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M \ 21 ${ZEPHYR_BASE}/scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M \ 25 echo "UART: Multi device tests" 26 WORK_DIR=${ZEPHYR_BASE}/bsim_uart nice tests/bsim/drivers/uart/compile.sh 27 RESULTS_FILE=${ZEPHYR_BASE}/bsim_out/bsim_results.uart.52.xml \ 28 SEARCH_PATH=tests/bsim/drivers/uart/ tests/bsim/run_parallel.sh
|