|
LUFA (Formerly MyUSB) Library 100807
|
Master include file for the USART peripheral driver. More...
#include <avr/io.h>#include <avr/pgmspace.h>#include <stdbool.h>#include "../../Common/Common.h"#include "../Misc/TerminalCodes.h"Defines | |
| #define | SERIAL_UBBRVAL(baud) ((((F_CPU / 16) + (baud / 2)) / (baud)) - 1) |
| #define | SERIAL_2X_UBBRVAL(baud) ((((F_CPU / 8) + (baud / 2)) / (baud)) - 1) |
Functions | |
| void | Serial_TxString_P (const char *FlashStringPtr) ATTR_NON_NULL_PTR_ARG(1) |
| void | Serial_TxString (const char *StringPtr) ATTR_NON_NULL_PTR_ARG(1) |
| static void | Serial_Init (const uint32_t BaudRate, const bool DoubleSpeed) |
| static void | Serial_ShutDown (void) |
| static bool | Serial_IsCharReceived (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
| static void | Serial_TxByte (const char DataByte) ATTR_ALWAYS_INLINE |
| static char | Serial_RxByte (void) ATTR_ALWAYS_INLINE |
Driver for the USART subsystem on supported USB AVRs.