/Zephyr-Core-2.7.6/drivers/wifi/eswifi/ |
D | eswifi_bus_uart.c | 48 static void eswifi_iface_uart_flush(struct eswifi_uart_data *uart) in eswifi_iface_uart_flush() argument 52 while (uart_fifo_read(uart->dev, &c, 1) > 0) { in eswifi_iface_uart_flush() 60 struct eswifi_uart_data *uart = &eswifi_uart0; /* Static instance */ in eswifi_iface_uart_isr() local 68 while (uart_irq_update(uart->dev) && in eswifi_iface_uart_isr() 69 uart_irq_rx_ready(uart->dev)) { in eswifi_iface_uart_isr() 71 partial_size = ring_buf_put_claim(&uart->rx_rb, &dst, in eswifi_iface_uart_isr() 76 eswifi_iface_uart_flush(uart); in eswifi_iface_uart_isr() 80 rx = uart_fifo_read(uart->dev, dst, partial_size); in eswifi_iface_uart_isr() 90 ring_buf_put_finish(&uart->rx_rb, total_size); in eswifi_iface_uart_isr() 111 static int eswifi_uart_get_resp(struct eswifi_uart_data *uart) in eswifi_uart_get_resp() argument [all …]
|
/Zephyr-Core-2.7.6/drivers/serial/ |
D | uart_sam.c | 52 static int baudrate_set(Uart *const uart, uint32_t baudrate, 61 Uart *const uart = cfg->regs; in uart_sam_init() local 71 uart->UART_CR = UART_CR_RSTRX | UART_CR_RSTTX in uart_sam_init() 75 uart->UART_IDR = 0xFFFFFFFF; in uart_sam_init() 80 uart->UART_MR = UART_MR_PAR_NO in uart_sam_init() 84 retval = baudrate_set(uart, dev_data->baud_rate, in uart_sam_init() 91 uart->UART_CR = UART_CR_RXEN | UART_CR_TXEN; in uart_sam_init() 102 Uart *const uart = DEV_CFG(dev)->regs; in uart_sam_poll_in() local 104 if (!(uart->UART_SR & UART_SR_RXRDY)) { in uart_sam_poll_in() 109 *c = (unsigned char)uart->UART_RHR; in uart_sam_poll_in() [all …]
|
D | uart_imx.c | 57 UART_Type *uart = UART_STRUCT(dev); in uart_imx_init() local 74 initConfig.clockRate = get_uart_clock_freq(uart); in uart_imx_init() 76 UART_Init(uart, &initConfig); in uart_imx_init() 79 UART_SetTxFifoWatermark(uart, 2); in uart_imx_init() 80 UART_SetRxFifoWatermark(uart, 1); in uart_imx_init() 90 UART_SetModemMode(uart, config->modem_mode); in uart_imx_init() 93 UART_Enable(uart); in uart_imx_init() 100 UART_Type *uart = UART_STRUCT(dev); in uart_imx_poll_out() local 102 while (!UART_GetStatusFlag(uart, uartStatusTxReady)) { in uart_imx_poll_out() 104 UART_Putchar(uart, c); in uart_imx_poll_out() [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_stellaris.c | 165 volatile struct _uart *uart = UART_STRUCT(dev); in baudrate_set() local 186 uart->ibrd = (uint16_t)(brdi & 0xffff); /* 16 bits */ in baudrate_set() 187 uart->fbrd = (uint8_t)(brdf & 0x3f); /* 6 bits */ in baudrate_set() 201 volatile struct _uart *uart = UART_STRUCT(dev); in enable() local 203 uart->ctl |= UARTCTL_UARTEN; in enable() 217 volatile struct _uart *uart = UART_STRUCT(dev); in disable() local 219 uart->ctl &= ~UARTCTL_UARTEN; in disable() 222 while (uart->fr & UARTFR_BUSY) { in disable() 226 uart->lcrh &= ~UARTLCRH_FEN; in disable() 250 volatile struct _uart *uart = UART_STRUCT(dev); in line_control_defaults_set() local [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() 154 volatile struct uart_sifive_regs_t *uart = DEV_UART(dev); in uart_sifive_fifo_read() local 159 val = uart->rx; in uart_sifive_fifo_read() [all …]
|
D | uart_miv.c | 159 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_out() local 161 while (!(uart->status & STATUS_TXRDY_MASK)) { in uart_miv_poll_out() 164 uart->tx = c; in uart_miv_poll_out() 169 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_poll_in() local 171 if (uart->status & STATUS_RXFULL_MASK) { in uart_miv_poll_in() 172 *c = (unsigned char)(uart->rx & RXDATA_MASK); in uart_miv_poll_in() 181 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_err_check() local 182 uint32_t flags = uart->status; in uart_miv_err_check() 207 volatile struct uart_miv_regs_t *uart = DEV_UART(dev); in uart_miv_fifo_fill() local 210 for (i = 0; i < size && (uart->status & STATUS_TXRDY_MASK); i++) { in uart_miv_fifo_fill() [all …]
|
/Zephyr-Core-2.7.6/boards/arm/qemu_cortex_m3/ |
D | qemu_cortex_m3.dts | 12 uart-0 = &uart0; 13 uart-1 = &uart1; 14 uart-2 = &uart2; 21 zephyr,shell-uart = &uart0; 22 zephyr,bt-uart = &uart2; 23 zephyr,uart-pipe = &uart1; 24 zephyr,bt-mon-uart = &uart2;
|
/Zephyr-Core-2.7.6/boards/arm/arduino_due/ |
D | arduino_due.dts | 12 uart-0 = &uart; 21 zephyr,console = &uart; 22 zephyr,shell-uart = &uart; 51 &uart {
|
/Zephyr-Core-2.7.6/drivers/console/ |
D | uart_mux.c | 45 const struct device *uart; member 175 uart_mux->uart->name); in uart_mux_consume_ringbuf() 256 static void uart_mux_isr(const struct device *uart, void *user_data) in uart_mux_isr() argument 263 while (uart_irq_update(uart) && in uart_mux_isr() 264 uart_irq_rx_ready(uart)) { in uart_mux_isr() 265 rx = uart_fifo_read(uart, real_uart->rx_buf, in uart_mux_isr() 294 const struct device *uart = dev_data->real_uart->uart; in uart_mux_disable() local 296 uart_irq_rx_disable(uart); in uart_mux_disable() 297 uart_irq_tx_disable(uart); in uart_mux_disable() 298 uart_mux_flush_isr(uart); in uart_mux_disable() [all …]
|
D | uart_pipe.c | 80 static void uart_pipe_setup(const struct device *uart) in uart_pipe_setup() argument 84 uart_irq_rx_disable(uart); in uart_pipe_setup() 85 uart_irq_tx_disable(uart); in uart_pipe_setup() 88 while (uart_fifo_read(uart, &c, 1)) { in uart_pipe_setup() 92 uart_irq_callback_set(uart, uart_pipe_isr); in uart_pipe_setup() 94 uart_irq_rx_enable(uart); in uart_pipe_setup()
|
D | uart_mcumgr.c | 220 static void uart_mcumgr_setup(const struct device *uart) in uart_mcumgr_setup() argument 222 uart_callback_set(uart, uart_mcumgr_async, NULL); in uart_mcumgr_setup() 224 uart_rx_enable(uart, async_buffer[0], sizeof(async_buffer[0]), 0); in uart_mcumgr_setup() 227 static void uart_mcumgr_setup(const struct device *uart) in uart_mcumgr_setup() argument 231 uart_irq_rx_disable(uart); in uart_mcumgr_setup() 232 uart_irq_tx_disable(uart); in uart_mcumgr_setup() 235 while (uart_fifo_read(uart, &c, 1)) { in uart_mcumgr_setup() 239 uart_irq_callback_set(uart, uart_mcumgr_isr); in uart_mcumgr_setup() 241 uart_irq_rx_enable(uart); in uart_mcumgr_setup()
|
/Zephyr-Core-2.7.6/dts/arm/nuvoton/ |
D | m48x.dtsi | 41 compatible = "nuvoton,numicro-uart"; 48 compatible = "nuvoton,numicro-uart"; 55 compatible = "nuvoton,numicro-uart"; 62 compatible = "nuvoton,numicro-uart"; 69 compatible = "nuvoton,numicro-uart"; 76 compatible = "nuvoton,numicro-uart"; 83 compatible = "nuvoton,numicro-uart"; 90 compatible = "nuvoton,numicro-uart";
|
/Zephyr-Core-2.7.6/samples/drivers/flash_shell/ |
D | README.rst | 28 uart:~$ flash page_count 30 uart:~$ flash page_erase 1023 32 uart:~$ flash page_write 1023 8 17 19 28 39 35 uart:~$ flash page_write 1023 4 77 9 1 2 38 uart:~$ flash page_read 1023 4 12 41 uart:~$ flash page_read 1023 0 16
|
/Zephyr-Core-2.7.6/boards/arm/mps3_an547/ |
D | mps3_an547-common.dtsi | 133 uart0: uart@9303000 { 134 compatible = "arm,cmsdk-uart"; 143 uart1: uart@9304000 { 144 compatible = "arm,cmsdk-uart"; 153 uart2: uart@9305000 { 154 compatible = "arm,cmsdk-uart"; 163 uart3: uart@9306000 { 164 compatible = "arm,cmsdk-uart"; 173 uart4: uart@9307000 { 174 compatible = "arm,cmsdk-uart"; [all …]
|
/Zephyr-Core-2.7.6/tests/drivers/uart/uart_async_api/boards/ |
D | segger_rtt.overlay | 9 compatible = "segger,rtt-uart"; 15 compatible = "segger,rtt-uart"; 21 compatible = "segger,rtt-uart"; 27 compatible = "segger,rtt-uart";
|
/Zephyr-Core-2.7.6/boards/x86/up_squared/ |
D | up_squared.dts | 27 zephyr,shell-uart = &uart0; 28 zephyr,bt-uart = &uart1; 29 zephyr,uart-pipe = &uart1; 30 zephyr,bt-mon-uart = &uart1;
|
/Zephyr-Core-2.7.6/dts/arm/st/f4/ |
D | stm32f413.dtsi | 12 compatible ="st,stm32-uart"; 21 compatible = "st,stm32-uart"; 30 compatible = "st,stm32-uart"; 39 compatible = "st,stm32-uart"; 48 compatible = "st,stm32-uart"; 57 compatible = "st,stm32-uart";
|
/Zephyr-Core-2.7.6/include/drivers/console/ |
D | uart_mux.h | 59 int (*attach)(const struct device *mux, const struct device *uart, 77 const struct device *uart, in uart_mux_attach() argument 84 return api->attach(mux, uart, dlci_address, cb, user_data); in uart_mux_attach() 118 typedef void (*uart_mux_cb_t)(const struct device *uart,
|
/Zephyr-Core-2.7.6/samples/boards/arc_secure_services/ |
D | em_starterkit_em7d_normal.dts | 19 uart-0 = &uart0; 20 uart-1 = &uart1; 21 uart-2 = &uart2; 27 zephyr,shell-uart = &uart1;
|
/Zephyr-Core-2.7.6/boards/arc/em_starterkit/ |
D | em_starterkit.dts | 19 uart-0 = &uart0; 20 uart-1 = &uart1; 21 uart-2 = &uart2; 27 zephyr,shell-uart = &uart1;
|
D | em_starterkit_em11d.dts | 19 uart-0 = &uart0; 20 uart-1 = &uart1; 21 uart-2 = &uart2; 27 zephyr,shell-uart = &uart1;
|
D | em_starterkit_em7d.dts | 19 uart-0 = &uart0; 20 uart-1 = &uart1; 21 uart-2 = &uart2; 27 zephyr,shell-uart = &uart1;
|
D | em_starterkit_em7d_v22.dts | 19 uart-0 = &uart0; 20 uart-1 = &uart1; 21 uart-2 = &uart2; 27 zephyr,shell-uart = &uart1;
|
/Zephyr-Core-2.7.6/boards/arm/mps2_an385/ |
D | mps2_an385.dts | 23 zephyr,shell-uart = &uart0; 24 zephyr,uart-pipe = &uart1; 101 uart0: uart@40004000 { 102 compatible = "arm,cmsdk-uart"; 111 uart1: uart@40005000 { 112 compatible = "arm,cmsdk-uart"; 121 uart2: uart@40006000 { 122 compatible = "arm,cmsdk-uart"; 131 uart3: uart@40007000 { 132 compatible = "arm,cmsdk-uart"; [all …]
|