/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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 120 * This routine set the given baud rate for the UART. 122 * @param dev UART device struct 150 config->uart->ibrd = (uint16_t)(brdi & 0xffff); /* 16 bits */ in baudrate_set() [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> 39 } uart; member 53 if (!ring_buf_is_empty(dev_data->uart.tx_ringbuf)) { in bt_notif_enabled() 54 k_work_reschedule_for_queue(&nus_work_queue, &dev_data->uart.tx_work, K_NO_WAIT); in bt_notif_enabled() 67 struct ring_buf *ringbuf = dev_data->uart.rx_ringbuf; in bt_received() 78 k_work_submit_to_queue(&nus_work_queue, &dev_data->uart.cb_work); in bt_received() 83 struct uart_bt_data *dev_data = CONTAINER_OF(work, struct uart_bt_data, uart.cb_work); in cb_work_handler() 85 if (dev_data->uart.callback.cb) { in cb_work_handler() 86 dev_data->uart.callback.cb( in cb_work_handler() 87 dev_data->uart.callback.dev, in cb_work_handler() [all …]
|
D | Kconfig | 40 module = UART 41 module-str = uart 52 bool "Runtime configuration for UART controllers" 55 Enable runtime configuration of UART controllers. 57 configure the UART controllers at runtime, and calling 59 disabled, UART controllers rely on UART driver's 64 applications that do not require runtime UART configuration. 67 bool "Asynchronous UART API" 70 This option enables asynchronous UART API. 73 bool "UART Interrupt support" [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/tests/drivers/uart/uart_basic_api/ |
D | testcase.yaml | 2 drivers.uart.basic_api: 5 - uart 10 drivers.uart.basic_api.wide: 13 tags: drivers uart 21 drivers.uart.basic_api.poll: 25 - uart 30 drivers.uart.basic_api.shell: 35 - uart 40 drivers.uart.basic_api.cdc_acm: 50 drivers.uart.basic_api.shell_ke17z9_uart: [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/doc/connectivity/bluetooth/api/audio/shell/ |
D | bap.rst | 98 uart:~$ bt init 99 uart:~$ bap init 100 uart:~$ bt connect <address> 101 uart:~$ gatt exchange-mtu 102 uart:~$ bap discover sink 103 uart:~$ bap config sink 0 104 uart:~$ bap qos 105 uart:~$ bap enable 106 uart:~$ bap connect 112 uart:~$ bt init [all …]
|
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 283 uart:~$ cap_commander discover 292 uart:~$ vcp_vol_ctlr discover 294 uart:~$ cap_commander change_volume 15 [all …]
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/subsys/logging/backends/ |
D | Kconfig.uart | 5 bool "UART backend" 11 When enabled backend is using UART to output logs. 16 bool "Use UART Asynchronous API" 26 RAM before log_output_flush is automatically called on the UART backend. The buffer 33 bool "Automatically start UART backend" 36 When enabled automatically start the UART logging backend on 40 backend = UART 41 backend-str = uart 58 Dictionary-based logging output in hexadecimal. Supported only for UART backend.
|
/Zephyr-Core-3.7.0/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-Core-3.7.0/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: 37 drivers.uart.async_api.nrf_uart: 47 drivers.uart.async_api.rtt: 60 drivers.uart.async_api.lpuart: 64 drivers.uart.async_api.sam0: 77 drivers.uart.async_api.nocache_mem: 91 drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg: [all …]
|
/Zephyr-Core-3.7.0/tests/drivers/uart/uart_mix_fifo_poll/ |
D | testcase.yaml | 4 - uart 20 drivers.uart.uart_mix_poll: 27 drivers.uart.uart_mix_poll_fifo: 34 drivers.uart.uart_mix_poll_async_api: 42 drivers.uart.uart_mix_poll_async_api_const: 53 drivers.uart.uart_mix_poll_with_ppi: 61 drivers.uart.uart_mix_poll_fifo_with_ppi: 69 drivers.uart.uart_mix_poll_async_api_with_ppi: 78 drivers.uart.legacy.uart_mix_poll: 89 drivers.uart.legacy.uart_mix_poll_fifo: [all …]
|
/Zephyr-Core-3.7.0/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 …]
|