aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/XPLAINBridge/XPLAINBridge.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-07-12 02:23:11 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-07-12 02:23:11 +0000
commit3fd246041b10609a204a6352aa1b86d7000171d4 (patch)
tree4aecc6dd41304dfc82df5b884ed66f8e1143c2a8 /Projects/XPLAINBridge/XPLAINBridge.c
parent229935184b3ca7eda9edd6b7d7851f53b2441a65 (diff)
downloadlufa-3fd246041b10609a204a6352aa1b86d7000171d4.tar.gz
lufa-3fd246041b10609a204a6352aa1b86d7000171d4.tar.bz2
lufa-3fd246041b10609a204a6352aa1b86d7000171d4.zip
Add glitch protection to the software UART in the XPLAINBridge project code, so that very short glitches on the RX line don't cause a frame reception to occur.
Diffstat (limited to 'Projects/XPLAINBridge/XPLAINBridge.c')
-rw-r--r--Projects/XPLAINBridge/XPLAINBridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c
index c08dfe980..1f0070319 100644
--- a/Projects/XPLAINBridge/XPLAINBridge.c
+++ b/Projects/XPLAINBridge/XPLAINBridge.c
@@ -180,7 +180,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
{
EndpointConfigSuccess &= CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface);
- /* Configure the UART flush timer */
+ /* Configure the UART flush timer - run at FCPU/1024 for maximum interval before overflow */
TCCR0B = ((1 << CS02) | (1 << CS00));
}
else