From d96e48cecf9b19e44f4dd7624c7a8dff98603991 Mon Sep 17 00:00:00 2001 From: Simen Svale Skogsrud Date: Fri, 11 Feb 2011 01:11:33 +0100 Subject: [PATCH] added a line to disable baud doubling, but commented out for the time being until I can test it on real hardware --- wiring_serial.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wiring_serial.c b/wiring_serial.c index 3825a92..a2fb824 100644 --- a/wiring_serial.c +++ b/wiring_serial.c @@ -43,6 +43,9 @@ void beginSerial(long baud) UBRR0H = ((F_CPU / 16 + baud / 2) / baud - 1) >> 8; UBRR0L = ((F_CPU / 16 + baud / 2) / baud - 1); + /* baud doubler off - Only needed on Uno XXX */ + // UCSR0A &= ~(1 << U2X0); + // enable rx and tx UCSR0B |= 1<