roneos
Operating System for the r-one robot
 All Data Structures Files Functions Variables Typedefs Groups
serial.h File Reference

Serial UART communication functions. More...

Go to the source code of this file.

Functions

void serial_init (void)
 Initializes serial I/O. More...
 
void sputchar (char c)
 Buffers a character on the serial output buffer. More...
 
int sgetchar (void)
 Gets a character from serial receive buffer. More...
 

Detailed Description

Serial UART communication functions.

Since
July 21, 2010
Author
MRSL

Function Documentation

void serial_init ( void  )

Initializes serial I/O.

Enable the peripherals used by this example. Enable processor interrupts. Set GPIO A0 and A1 as UART pins. Configure the UART for 115,200, 8-N-1 operation. Enable the UART interrupt.

Returns
void
int sgetchar ( void  )

Gets a character from serial receive buffer.

Returns
first character from serial receive buffer.
void sputchar ( char  c)

Buffers a character on the serial output buffer.

Sends the character c to the transmit FIFO for the port specified by UARTO_BASE (base address).

Parameters
cis the character to be transmitted
Returns
void

Buffers a character on the serial output buffer.

Sends the character c to the transmit FIFO for the port specified by UARTO_BASE (base address).

Parameters
cis the character to be transmitted
Returns
void