projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add user callback function to the Bluetooth host demo to filter out connections from...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
Peripheral
/
Serial.h
diff --git
a/LUFA/Drivers/Peripheral/Serial.h
b/LUFA/Drivers/Peripheral/Serial.h
index
ba466f3
..
662d7f2
100644
(file)
--- a/
LUFA/Drivers/Peripheral/Serial.h
+++ b/
LUFA/Drivers/Peripheral/Serial.h
@@
-29,6
+29,7
@@
*/
\r
\r
/** \file
\r
*/
\r
\r
/** \file
\r
+ * \brief Master include file for the USART peripheral driver.
\r
*
\r
* Driver for the USART subsystem on supported USB AVRs.
\r
*/
\r
*
\r
* Driver for the USART subsystem on supported USB AVRs.
\r
*/
\r
@@
-68,12
+69,12
@@
/** Macro for calculating the baud value from a given baud rate when the U2X (double speed) bit is
\r
* not set.
\r
*/
\r
/** Macro for calculating the baud value from a given baud rate when the U2X (double speed) bit is
\r
* not set.
\r
*/
\r
- #define SERIAL_UBBRVAL(baud) (((
F_CPU / 16
) / (baud)) - 1)
\r
+ #define SERIAL_UBBRVAL(baud) (((
(F_CPU / 16) + (baud / 2)
) / (baud)) - 1)
\r
\r
/** Macro for calculating the baud value from a given baud rate when the U2X (double speed) bit is
\r
* set.
\r
*/
\r
\r
/** Macro for calculating the baud value from a given baud rate when the U2X (double speed) bit is
\r
* set.
\r
*/
\r
- #define SERIAL_2X_UBBRVAL(baud) (((
F_CPU / 8
) / (baud)) - 1)
\r
+ #define SERIAL_2X_UBBRVAL(baud) (((
(F_CPU / 8) + (baud / 2)
) / (baud)) - 1)
\r
\r
/* Pseudo-Function Macros: */
\r
#if defined(__DOXYGEN__)
\r
\r
/* Pseudo-Function Macros: */
\r
#if defined(__DOXYGEN__)
\r