#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "utils.h"
#include "usart.h"
Go to the source code of this file.
Defines | |
#define | UART_RX_BUFFER_MASK ( UART_RX_BUFFER_SIZE - 1 ) |
#define | UART_RX_BUFFER_SIZE 64 /* 2,4,8,16,32,64,128 or 256 bytes */ |
AVR includes. | |
#define | UART_TX_BUFFER_MASK ( UART_TX_BUFFER_SIZE - 1 ) |
#define | UART_TX_BUFFER_SIZE 64 |
Functions | |
ISR (USART0_RX_vect) | |
ISR (USART0_UDRE_vect) | |
void | uart_bufferFlush (const int8_t b) |
unsigned char | uart_DataInReceiveBuffer () |
unsigned char | uart_getc (void) |
char | uart_gets (char *str) |
void | uart_init () |
void | uart_loopback () |
void | uart_putc (unsigned char data) |
void | uart_puts (const char *str) |
Variables | |
static unsigned char | UART_RxBuf [UART_RX_BUFFER_SIZE] |
static volatile char | UART_RxHead |
static volatile char | UART_RxTail |
static unsigned char | UART_TxBuf [UART_TX_BUFFER_SIZE] |
static volatile char | UART_TxHead |
static volatile char | UART_TxTail |
#define UART_RX_BUFFER_MASK ( UART_RX_BUFFER_SIZE - 1 ) |
#define UART_RX_BUFFER_SIZE 64 /* 2,4,8,16,32,64,128 or 256 bytes */ |
#define UART_TX_BUFFER_MASK ( UART_TX_BUFFER_SIZE - 1 ) |
#define UART_TX_BUFFER_SIZE 64 |
void uart_bufferFlush | ( | const int8_t | b | ) |
unsigned char uart_DataInReceiveBuffer | ( | ) |
unsigned char uart_getc | ( | void | ) |
char uart_gets | ( | char * | str | ) |
void uart_init | ( | void | ) |
void uart_loopback | ( | ) |
void uart_putc | ( | unsigned char | data | ) |
void uart_puts | ( | const char * | str | ) |
unsigned char UART_RxBuf[UART_RX_BUFFER_SIZE] [static] |
volatile char UART_RxHead [static] |
volatile char UART_RxTail [static] |
unsigned char UART_TxBuf[UART_TX_BUFFER_SIZE] [static] |
volatile char UART_TxHead [static] |
volatile char UART_TxTail [static] |