aboutsummaryrefslogtreecommitdiff
path: root/Projects/XPLAINBridge/Lib/SoftUART.h
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-07-11 14:14:08 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-07-11 14:14:08 +0000
commit41215ef160254682c175630f212c6b9032e17792 (patch)
tree011238e1c71075780e859a8d7e83490b197c5350 /Projects/XPLAINBridge/Lib/SoftUART.h
parent14cda3456ead2bbe4ac06fbdba4eb4aba93833a3 (diff)
Major changes to the XPLAINBridge software UART code for performance and reliability. New code reduces the number of missed characters and misread characters.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1370 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/XPLAINBridge/Lib/SoftUART.h')
-rw-r--r--Projects/XPLAINBridge/Lib/SoftUART.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/XPLAINBridge/Lib/SoftUART.h b/Projects/XPLAINBridge/Lib/SoftUART.h
index a685a6d8..a107d48a 100644
--- a/Projects/XPLAINBridge/Lib/SoftUART.h
+++ b/Projects/XPLAINBridge/Lib/SoftUART.h
@@ -43,7 +43,7 @@
/* Macros: */
#define BAUD 9600
- #define BIT_TIME ((F_CPU + (BAUD / 2)) / BAUD)
+ #define BIT_TIME ((F_CPU / BAUD) - 1)
#define SRX PD0
#define SRXPIN PIND