RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros | Functions
zynq-uart-polled.c File Reference

This source file contains the implementation of the polled Zynq UART support. More...

#include <dev/serial/zynq-uart.h>
#include <dev/serial/zynq-uart-regs.h>
#include <bspopts.h>

Macros

#define XUARTPS_MAX_BAUD_ERROR_RATE   3 /* max % error allowed */
 

Functions

uint32_t zynq_uart_input_clock (void)
 
int zynq_cal_baud_rate (uint32_t baudrate, uint32_t *brgr, uint32_t *bauddiv, uint32_t modereg)
 
void zynq_uart_initialize (rtems_termios_device_context *base)
 
int zynq_uart_read_polled (rtems_termios_device_context *base)
 
void zynq_uart_write_polled (rtems_termios_device_context *base, char c)
 
void zynq_uart_reset_tx_flush (zynq_uart_context *ctx)
 

Detailed Description

This source file contains the implementation of the polled Zynq UART support.

Function Documentation

◆ zynq_uart_reset_tx_flush()

void zynq_uart_reset_tx_flush ( zynq_uart_context ctx)

Flush TX FIFO and wait until it is empty. Used in bsp_reset.