yarf 0.1
Yet Another RepRap Firmware
Functions | Variables
src/hardware/usart.h File Reference

Driver for USART0, which is connected to the host. More...

#include <stdbool.h>
#include <stdio.h>

Go to the source code of this file.

Functions

void usart_init (void)
 Initializes the usart component.
void usart0_try_read_character (void)
 If a character is waiting in the USART hardware buffer, this function reads that character and places it into the input buffer.

Variables

FILE usart0_stream
 Stream which can be used to read from and write to the USART.

Detailed Description

Driver for USART0, which is connected to the host.

Author:
Pieter Agten (pieter.agten@gmail.com)
Date:
20 sep 2011

Definition in file usart.h.


Function Documentation

void usart0_try_read_character ( void  )

If a character is waiting in the USART hardware buffer, this function reads that character and places it into the input buffer.

This function can be called from within long interrupt service routines that have higher priority than the USART0_RX interrupt, in order to prevent the hardware buffer from overrunning.

Definition at line 262 of file usart.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines