![]() |
RTEMS 6.3
|
This group contains the Zynq UART support. More...
Files | |
| file | bsps/include/dev/serial/zynq-uart-regs.h |
| This header file provides Zynq UART interfaces. | |
| file | bsps/include/dev/serial/zynq-uart-zynq.h |
| This header file provides interfaces with respect to the Zynq platform. | |
| file | bsps/include/dev/serial/zynq-uart-zynqmp.h |
| This header file provides interfaces with respect to the Zynq UltraScale+ MPSoC and RFSoC platforms. | |
| file | bsps/include/dev/serial/zynq-uart.h |
| This header file provides Zynq UART Termios driver interfaces. | |
| file | bsps/shared/dev/serial/zynq-uart-input-clock.c |
| This source file contains the implementation of the polled Zynq UART support. | |
| file | bsps/shared/dev/serial/zynq-uart-kernel-io.c |
| This source file contains the definition of BSP_output_char and BSP_poll_char. | |
| file | bsps/shared/dev/serial/zynq-uart-polled.c |
| This source file contains the implementation of the polled Zynq UART support. | |
Data Structures | |
| struct | zynq_uart |
| struct | zynq_uart_context |
Typedefs | |
| typedef struct zynq_uart | zynq_uart |
Functions | |
| void | zynq_uart_initialize (volatile zynq_uart *regs) |
| int | zynq_uart_read_char_polled (volatile zynq_uart *regs) |
| void | zynq_uart_write_char_polled (volatile zynq_uart *regs, char c) |
| void | zynq_uart_reset_tx_flush (volatile zynq_uart *regs) |
| uint32_t | zynq_uart_input_clock (void) |
| Returns the Zynq UART input clock frequency in Hz. | |
| uint32_t | zynq_uart_calculate_baud (uint32_t desired_baud, uint32_t mode_clks, uint32_t *cd_ptr, uint32_t *bdiv_ptr) |
| Calculates the clock and baud divisor of the best approximation of the desired baud. | |
Variables | |
| const rtems_termios_device_handler | zynq_uart_handler |
This group contains the Zynq UART support.
| uint32_t zynq_uart_calculate_baud | ( | uint32_t | desired_baud, |
| uint32_t | mode_clks, | ||
| uint32_t * | cd_ptr, | ||
| uint32_t * | bdiv_ptr ) |
Calculates the clock and baud divisor of the best approximation of the desired baud.
The function tries to yield a sample set around 16 per RX-bit.
| desired_baud | is the desired baud for an Zynq UART device. |
| mode_clks | is the value of the CLKS bit of the Zynq UART mode register. |
| cd_ptr[out] | is a reference to an uint32_t object. The function stores the calculated clock divisor to this object. |
| bdiv_ptr[out] | is a reference to an uint32_t object. The function stores the calculated baud divisor to this object. |
| void zynq_uart_reset_tx_flush | ( | volatile zynq_uart * | regs | ) |
Flush TX FIFO and wait until it is empty. Used in bsp_reset.