yarf 0.1
Yet Another RepRap Firmware
|
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. |
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.