![]() |
roneos
Operating System for the r-one robot
|
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... | |
Serial UART communication functions.
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.
int sgetchar | ( | void | ) |
Gets a 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).
c | is the character to be transmitted |
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).
c | is the character to be transmitted |