/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_bus_uart.c | 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() 110 static int eswifi_uart_get_resp(struct eswifi_uart_data *uart) in eswifi_uart_get_resp() argument [all …]
|
/Zephyr-latest/samples/drivers/uart/native_tty/ |
D | README.rst | 1 .. zephyr:code-sample:: uart-native-tty 15 :zephyr_file:`samples/drivers/uart/native_tty`. 40 :zephyr-app: samples/drivers/uart/native_tty 53 uart connected to the serial port: /dev/ttyUSB0 55 Device uart sent: "Hello from device uart, num 9" 56 Device uart2 received: "Hello from device uart, num 9" 57 Device uart sent: "Hello from device uart, num 8" 58 Device uart2 received: "Hello from device uart, num 8" 59 Device uart sent: "Hello from device uart, num 7" 60 Device uart2 received: "Hello from device uart, num 7" [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_imx.c | 58 UART_Type *uart = UART_STRUCT(dev); in uart_imx_init() local 81 initConfig.clockRate = get_uart_clock_freq(uart); in uart_imx_init() 83 UART_Init(uart, &initConfig); in uart_imx_init() 86 UART_SetTxFifoWatermark(uart, 2); in uart_imx_init() 87 UART_SetRxFifoWatermark(uart, 1); in uart_imx_init() 97 UART_SetModemMode(uart, config->modem_mode); in uart_imx_init() 100 UART_Enable(uart); in uart_imx_init() 107 UART_Type *uart = UART_STRUCT(dev); in uart_imx_poll_out() local 109 while (!UART_GetStatusFlag(uart, uartStatusTxReady)) { in uart_imx_poll_out() 111 UART_Putchar(uart, c); in uart_imx_poll_out() [all …]
|
D | uart_sam.c | 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 82 if (uart->UART_SR & UART_SR_OVRE) { in uart_sam_err_check() 86 if (uart->UART_SR & UART_SR_PARE) { in uart_sam_err_check() 90 if (uart->UART_SR & UART_SR_FRAME) { in uart_sam_err_check() [all …]
|
D | uart_b91.c | 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 117 return (uart->bufcnt & FLD_UART_RX_BUF_CNT) >> FLD_UART_RX_BUF_CNT_OFFSET; in uart_b91_get_rx_bufcnt() 201 static void uart_b91_init(volatile struct uart_b91_t *uart, uint16_t divider, in uart_b91_init() argument 206 uart->ctrl0 = bwpc; in uart_b91_init() 207 uart->clk_div = divider; in uart_b91_init() 212 uart->ctrl1 |= FLD_UART_PARITY_ENABLE; in uart_b91_init() 216 uart->ctrl1 &= (~FLD_UART_PARITY_POLARITY); in uart_b91_init() 219 uart->ctrl1 |= FLD_UART_PARITY_POLARITY; in uart_b91_init() [all …]
|
D | uart_numaker.c | 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() 232 UART_Open(config->uart, pData->ucfg.baudrate); in uart_numaker_init() [all …]
|
D | uart_sifive.c | 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() 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() 132 volatile struct uart_sifive_regs_t *uart = DEV_UART(dev); in uart_sifive_fifo_fill() local 135 for (i = 0; i < size && !(uart->tx & TXDATA_FULL); i++) { in uart_sifive_fifo_fill() 136 uart->tx = (int)tx_data[i]; in uart_sifive_fifo_fill() 155 volatile struct uart_sifive_regs_t *uart = DEV_UART(dev); in uart_sifive_fifo_read() local 160 val = uart->rx; in uart_sifive_fifo_read() [all …]
|
D | uart_stellaris.c | 72 volatile struct _uart *uart; member 115 static DEVICE_API(uart, uart_stellaris_driver_api); 150 config->uart->ibrd = (uint16_t)(brdi & 0xffff); /* 16 bits */ in baudrate_set() 151 config->uart->fbrd = (uint8_t)(brdf & 0x3f); /* 6 bits */ in baudrate_set() 165 config->uart->ctl |= UARTCTL_UARTEN; in enable() 179 config->uart->ctl &= ~UARTCTL_UARTEN; in disable() 182 while (config->uart->fr & UARTFR_BUSY) { in disable() 186 config->uart->lcrh &= ~UARTLCRH_FEN; in disable() 210 config->uart->lcrh = LINE_CONTROL_DEFAULTS; in line_control_defaults_set() 253 return (config->uart->fr & UARTFR_TXFE); in poll_tx_ready() [all …]
|
D | uart_bt.c | 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() 122 dev_data->uart.callback.cb_data); in cb_work_handler() [all …]
|
D | uart_miv.c | 157 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_out() local 159 while (!(uart->status & STATUS_TXRDY_MASK)) { in uart_miv_poll_out() 162 uart->tx = c; in uart_miv_poll_out() 167 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_in() local 169 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_poll_in() 170 *c = (unsigned char)(uart->rx & RXDATA_MASK); in uart_miv_poll_in() 179 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_err_check() local 180 uint32_t flags = uart->status; in uart_miv_err_check() 205 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_fifo_fill() local 208 for (i = 0; i < size && (uart->status & STATUS_TXRDY_MASK); i++) { in uart_miv_fifo_fill() [all …]
|
D | uart_pipe.c | 79 static void uart_pipe_setup(const struct device *uart) in uart_pipe_setup() argument 83 uart_irq_rx_disable(uart); in uart_pipe_setup() 84 uart_irq_tx_disable(uart); in uart_pipe_setup() 87 while (uart_fifo_read(uart, &c, 1)) { in uart_pipe_setup() 91 uart_irq_callback_set(uart, uart_pipe_isr); in uart_pipe_setup() 93 uart_irq_rx_enable(uart); in uart_pipe_setup()
|
D | uart_cmsdk_apb.c | 65 volatile struct uart_cmsdk_apb *uart; member 87 static DEVICE_API(uart, uart_cmsdk_apb_driver_api); 110 dev_cfg->uart->bauddiv = (dev_cfg->sys_clk_freq / dev_data->baud_rate); in baudrate_set() 148 dev_cfg->uart->ctrl = UART_RX_EN | UART_TX_EN; in uart_cmsdk_apb_init() 171 if (!(dev_cfg->uart->state & UART_RX_BF)) { in uart_cmsdk_apb_poll_in() 176 *c = (unsigned char)dev_cfg->uart->data; in uart_cmsdk_apb_poll_in() 196 while (dev_cfg->uart->state & UART_TX_BF) { in uart_cmsdk_apb_poll_out() 201 dev_cfg->uart->data = (uint32_t)c; in uart_cmsdk_apb_poll_out() 223 if (len && !(dev_cfg->uart->state & UART_TX_BF)) { in uart_cmsdk_apb_fifo_fill() 230 dev_cfg->uart->intclear = UART_TX_IN; in uart_cmsdk_apb_fifo_fill() [all …]
|
D | uart_numicro.c | 16 UART_T *uart; member 31 if ((config->uart->FIFOSTS & UART_FIFOSTS_RXEMPTY_Msk) != 0) { in uart_numicro_poll_in() 35 *c = (uint8_t)config->uart->DAT; in uart_numicro_poll_in() 44 UART_Write(config->uart, &c, 1); in uart_numicro_poll_out() 119 UART_DisableFlowCtrl(config->uart); in uart_numicro_configure() 121 UART_EnableFlowCtrl(config->uart); in uart_numicro_configure() 128 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, in uart_numicro_configure() 171 UART_Open(config->uart, ddata->ucfg.baudrate); in uart_numicro_init() 176 static DEVICE_API(uart, uart_numicro_driver_api) = { 190 .uart = (UART_T *)DT_INST_REG_ADDR(index), \
|
/Zephyr-latest/tests/drivers/uart/uart_emul/ |
D | uart_emul.overlay | 8 euart0: uart-emul { 9 compatible = "zephyr,uart-emul"; 16 euart1: uart-dummy-bus { 17 compatible = "zephyr,uart-emul"; 23 dummy: uart-dummy { 24 compatible = "uart-dummy";
|
/Zephyr-latest/subsys/modem/backends/ |
D | modem_backend_uart_isr.c | 18 while (uart_fifo_read(backend->uart, &c, 1) > 0) { in modem_backend_uart_isr_flush() 44 ret = uart_fifo_read(backend->uart, buffer, size); in modem_backend_uart_isr_irq_handler_receive_ready() 72 uart_irq_tx_disable(backend->uart); in modem_backend_uart_isr_irq_handler_transmit_ready() 78 ret = uart_fifo_fill(backend->uart, buffer, size); in modem_backend_uart_isr_irq_handler_transmit_ready() 89 static void modem_backend_uart_isr_irq_handler(const struct device *uart, void *user_data) in modem_backend_uart_isr_irq_handler() argument 93 if (uart_irq_update(uart) < 1) { in modem_backend_uart_isr_irq_handler() 97 if (uart_irq_rx_ready(uart)) { in modem_backend_uart_isr_irq_handler() 101 if (uart_irq_tx_ready(uart)) { in modem_backend_uart_isr_irq_handler() 115 uart_irq_rx_enable(backend->uart); in modem_backend_uart_isr_open() 116 uart_irq_tx_enable(backend->uart); in modem_backend_uart_isr_open() [all …]
|
/Zephyr-latest/tests/subsys/logging/log_backend_uart/ |
D | multi.overlay | 9 zephyr,log-uart = &log_uarts; 13 compatible = "zephyr,log-uart"; 17 euart0: uart-emul0 { 18 compatible = "zephyr,uart-emul"; 25 euart1: uart-emul1 { 26 compatible = "zephyr,uart-emul";
|
D | single.overlay | 9 zephyr,log-uart = &log_uarts; 13 compatible = "zephyr,log-uart"; 17 euart0: uart-emul0 { 18 compatible = "zephyr,uart-emul";
|
/Zephyr-latest/boards/common/usb/ |
D | cdc_acm_serial.dtsi | 10 zephyr,shell-uart = &board_cdc_acm_uart; 11 zephyr,uart-mcumgr = &board_cdc_acm_uart; 12 zephyr,bt-mon-uart = &board_cdc_acm_uart; 13 zephyr,bt-c2h-uart = &board_cdc_acm_uart; 19 compatible = "zephyr,cdc-acm-uart";
|
/Zephyr-latest/boards/qemu/cortex_m3/ |
D | qemu_cortex_m3.dts | 13 uart-0 = &uart0; 14 uart-1 = &uart1; 15 uart-2 = &uart2; 22 zephyr,shell-uart = &uart0; 24 zephyr,uart-pipe = &uart1; 25 zephyr,bt-mon-uart = &uart2; 44 compatible = "zephyr,bt-hci-uart";
|
/Zephyr-latest/tests/bsim/ |
D | ci.uart.sh | 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 \ 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
|
/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/tests/drivers/uart/uart_async_api/boards/ |
D | segger_rtt.overlay | 9 compatible = "segger,rtt-uart"; 14 compatible = "segger,rtt-uart"; 19 compatible = "segger,rtt-uart"; 24 compatible = "segger,rtt-uart";
|
/Zephyr-latest/boards/arduino/due/ |
D | arduino_due.dts | 13 uart-0 = &uart; 24 zephyr,console = &uart; 25 zephyr,shell-uart = &uart; 60 &uart {
|
/Zephyr-latest/samples/drivers/uart/native_tty/src/ |
D | main.c | 27 void send_str(const struct device *uart, char *str) in send_str() argument 32 uart_poll_out(uart, str[i]); in send_str() 35 printk("Device %s sent: \"%s\"\n", uart->name, str); in send_str() 38 void recv_str(const struct device *uart, char *str) in recv_str() argument 43 while (!uart_poll_in(uart, &c)) { in recv_str() 48 printk("Device %s received: \"%s\"\n", uart->name, str); in recv_str()
|