diff --git a/wiring_serial.c b/wiring_serial.c index 2f08fd8..3825a92 100644 --- a/wiring_serial.c +++ b/wiring_serial.c @@ -22,9 +22,10 @@ $Id: wiring.c 248 2007-02-03 15:36:30Z mellis $ */ -#include "wiring_private.h" +//#include "wiring_private.h" #include #include +#include // Define constants and variables for buffering incoming serial data. We're // using a ring buffer (I think), in which rx_buffer_head is the index of the @@ -43,11 +44,11 @@ void beginSerial(long baud) UBRR0L = ((F_CPU / 16 + baud / 2) / baud - 1); // enable rx and tx - sbi(UCSR0B, RXEN0); - sbi(UCSR0B, TXEN0); + UCSR0B |= 1<