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

Go to the source code of this file.

Functions

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

Function Documentation

u32 read_uart ( u32  reg_offs,
u32  uartid 
)

Gets the uart base address and returns it.

Parameters
reg_offset
uartid
Returns
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_offset
value
uartid
reg_offs
value
uartid