aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/XPLAINBridge/Lib/SoftUART.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-05-26 07:51:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-05-26 07:51:25 +0000
commit1c407b9669c0658ee9eb8b188818135ea04215e4 (patch)
tree3fe0aa8d3d42941f39a00e1c7b5f351f98b04ca2 /Projects/XPLAINBridge/Lib/SoftUART.h
parentf64e3db07ac167bf0b64bf429a53721f1848e91d (diff)
downloadlufa-1c407b9669c0658ee9eb8b188818135ea04215e4.tar.gz
lufa-1c407b9669c0658ee9eb8b188818135ea04215e4.tar.bz2
lufa-1c407b9669c0658ee9eb8b188818135ea04215e4.zip
Switch software UART over to timer 1 and remove timer prescaling to try to prevent integer rounding errors and thus minimize the possible error of the UART code.
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 a9401da10..a685a6d8f 100644
--- a/Projects/XPLAINBridge/Lib/SoftUART.h
+++ b/Projects/XPLAINBridge/Lib/SoftUART.h
@@ -43,7 +43,7 @@
/* Macros: */
#define BAUD 9600
- #define BIT_TIME (uint16_t)((F_CPU + (BAUD / 2.0f)) / BAUD)
+ #define BIT_TIME ((F_CPU + (BAUD / 2)) / BAUD)
#define SRX PD0
#define SRXPIN PIND