fremoclock  1_3A01
FREMO Clock - Software for UTG
uart.c File Reference

Minimal uart library with output only for debugging. More...

Go to the source code of this file.

Functions

static int uart_putchar (char c, FILE *stream)
 Write char to uart. More...
 

Variables

static FILE uart_stdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE)
 Variable of type file used to redirect stdout to uart_putchr. More...
 

Detailed Description

Minimal uart library with output only for debugging.

Hardware: ATmega8/48/88/168/328P.

Version
$Id: uart.c 159 2016-09-03 06:51:47Z pischky $
Author
Martin Pischky

Definition in file uart.c.

Function Documentation

static int uart_putchar ( char  c,
FILE *  stream 
)
static

Write char to uart.

Used to redirect stdout stream to uart.

Definition at line 64 of file uart.c.

Variable Documentation

FILE uart_stdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE)
static

Variable of type file used to redirect stdout to uart_putchr.

See documentation about redirecting in stdio.h of AVR Libc.

Definition at line 82 of file uart.c.