Home
last modified time | relevance | path

Searched full:uart (Results 1 – 25 of 2400) sorted by relevance

12345678910>>...96

/Zephyr-Core-3.6.0/samples/drivers/uart/native_tty/
DREADME.rst1 .. 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.6.0/drivers/wifi/eswifi/
Deswifi_bus_uart.c19 #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.6.0/drivers/serial/
Duart_sam.c11 * @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 …]
Duart_imx.c10 * @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 …]
Duart_numaker.c10 #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 …]
Duart_stellaris.c1 /* 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 …]
Duart_sifive.c8 * @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 …]
DKconfig.native_posix4 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 …]
Duart_b91.c11 #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 …]
/Zephyr-Core-3.6.0/include/zephyr/drivers/console/
Duart_mux.h9 * @brief Public APIs for UART MUX drivers
16 * @brief UART Mux Interface
17 * @defgroup uart_mux_interface UART Mux Interface
23 #include <zephyr/drivers/uart.h>
35 * the UART mux is attached properly.
37 * @param mux UART mux device
46 /** @brief UART mux driver API structure. */
50 * struct so that we are compatible with uart API. Note that currently
51 * not all of the UART API functions are implemented.
56 * Attach the mux to this UART. The API will call the callback after
[all …]
/Zephyr-Core-3.6.0/samples/modules/tflite-micro/magic_wand/renode/
Dlitex-vexriscv-tflite.robot14 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.6.0/subsys/mgmt/mcumgr/transport/
DKconfig.uart5 # 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.6.0/tests/drivers/uart/uart_basic_api/
Dtestcase.yaml2 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:
/Zephyr-Core-3.6.0/drivers/console/
DKconfig44 bool "Use UART for console"
48 Enable this option to use one UART for console.
61 bool "UART console mcumgr passthrough"
64 Enables the UART console to receive mcumgr frames for image upgrade
65 and device management. When enabled, the UART console does not
70 bool "Support for UART console input expired mechanism"
75 the module for UART console is in use now. If the interval of console
78 allowed to enter sleep/deep sleep state and turn off the clock of UART
83 int "Fixed amount of time to keep the UART console in use flag true"
87 Fixed amount of time which unit is milliseconds to keep the UART
[all …]
/Zephyr-Core-3.6.0/doc/connectivity/bluetooth/api/shell/
Dbap.rst77 uart:~$ bt init
78 uart:~$ bap init
79 uart:~$ bt connect <address>
80 uart:~$ gatt exchange-mtu
81 uart:~$ bap discover sink
82 uart:~$ bap config sink 0
83 uart:~$ bap qos
84 uart:~$ bap enable
90 uart:~$ bt init
91 uart:~$ bap init
[all …]
/Zephyr-Core-3.6.0/tests/drivers/uart/uart_mix_fifo_poll/
Dtestcase.yaml4 - uart
17 drivers.uart.uart_mix_poll:
25 drivers.uart.uart_mix_poll_fifo:
33 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:
85 drivers.uart.legacy.uart_mix_poll_fifo:
[all …]
/Zephyr-Core-3.6.0/subsys/logging/backends/
DKconfig.uart5 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-Core-3.6.0/samples/bluetooth/hci_uart_async/
Dsample.yaml2 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
DREADME.rst1 .. _bluetooth-hci-uart-async-sample:
3 Bluetooth: HCI UART based on ASYNC UART
6 Expose a Zephyr Bluetooth Controller over a standard Bluetooth HCI UART interface.
8 This sample performs the same basic function as the HCI UART sample, but it uses the UART_ASYNC_API
9 instead of UART_INTERRUPT_DRIVEN API. Not all boards implement both UART APIs, so the board support
10 of the HCI UART sample may be different.
17 Default UART settings
53 .. _bluetooth-hci-uart-async-qemu-posix:
58 In order to use the HCI UART controller with QEMU or :ref:`native_sim <native_sim>` you will need
60 connect the UART to the Linux machine, and then attach it with this command:
[all …]
/Zephyr-Core-3.6.0/drivers/modem/
Dmodem_iface_uart.h2 * @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-Core-3.6.0/samples/bluetooth/hci_uart/
Dsample.yaml2 name: Bluetooth HCI UART
3 description: Allows Zephyr to provide Bluetooth connectivity via UART
10 - uart
19 - uart
28 - uart
38 - uart
48 - uart
59 - uart
/Zephyr-Core-3.6.0/dts/bindings/serial/
Dnuvoton,npcx-uart.yaml4 description: Nuvoton, NPCX-UART node
6 compatible: "nuvoton,npcx-uart"
8 include: [uart-controller.yaml, pinctrl-device.yaml]
19 uart-rx:
23 Mapping table between Wake-Up Input (WUI) and uart rx START signal.
26 uart-rx = <&wui_cr_sin1>;
Dmicrochip,xec-uart.yaml1 description: Microchip XEC UART
3 compatible: "microchip,xec-uart"
5 include: [uart-controller.yaml, pinctrl-device.yaml]
22 description: UART GIRQ and bit position in EC interrupt aggregator
27 description: UART Power Clock Reset(PCR) register index and bit position
37 description: GPIO configured as UART RX wake source
/Zephyr-Core-3.6.0/tests/drivers/uart/uart_async_api/
Dtestcase.yaml8 - uart
10 drivers.uart.async_api:
16 drivers.uart.wide:
28 drivers.uart.async_api.nrf_uarte_new:
38 drivers.uart.async_api.nrf_uart:
48 drivers.uart.async_api.rtt:
61 drivers.uart.async_api.lpuart:
65 drivers.uart.async_api.sam0:
/Zephyr-Core-3.6.0/tests/drivers/uart/uart_pm/
Dtestcase.yaml4 - uart
13 drivers.uart.pm:
20 drivers.uart.pm.no_rxpin:
28 drivers.uart.pm.enhanced_poll:
35 drivers.uart.pm.int_driven:
43 drivers.uart.pm.int_driven.enhanced_poll:
51 drivers.uart.pm.async:
62 drivers.uart.pm.async.enhanced_poll:

12345678910>>...96