My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
pl011_uart.c File Reference
#include <uart.h>
#include <pl011_uart.h>
#include <sw_board.h>
#include <sw_common_types.h>

Functions

u32 read_uart (u32 reg_offs, u32 uartid)
 Gets the uart base address and returns it. More...
 
void write_uart (u32 reg_offs, u32 value, u32 uartid)
 Gets the base address of UART and writes the value onto the reg_ptr. More...
 
void serial_putc (char c)
 write a character to UART More...
 
void serial_puts (char *c)
 write a series of characters to UART More...
 
void serial_init (u32 uart_id)
 UART initialization. More...
 

Function Documentation

u32 read_uart ( u32  reg_offs,
u32  uartid 
)

Gets the uart base address and returns it.

Parameters
reg_offs
uartid
Returns
void serial_init ( u32  uart_id)

UART initialization.

Parameters
uart_id
void serial_putc ( char  c)

write a character to UART

Parameters
c
void serial_puts ( char *  c)

write a series of characters to UART

Parameters
c
void write_uart ( u32  reg_offs,
u32  value,
u32  uartid 
)

Gets the base address of UART and writes the value onto the reg_ptr.

Parameters
reg_offs
value
uartid