uart0_min.h File Reference

This file provides minimal UART0 implementation The getchar and putchar functions provide polling version of data I/O. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void uart0_init (unsigned int baud_rate)
 
char uart0_getchar (char unused)
 
char uart0_putchar (char out)
 
void uart0_puts (const char *c_string)
 

Detailed Description

This file provides minimal UART0 implementation The getchar and putchar functions provide polling version of data I/O.

Function Documentation

char uart0_getchar ( char  unused)
Parameters
unusedUnused parameter to comply with char function pointer.
Returns
character received over UART0
void uart0_init ( unsigned int  baud_rate)

Initializes UART0 of LPC17xx

Parameters
baud_rateThe baud rate to set
char uart0_putchar ( char  out)
Parameters
outThe character to output over UART0
Returns
Always 1.
void uart0_puts ( const char *  c_string)

outputs a string using uart0_putchar()

Parameters
c_stringThe pointer to null terminated string