Fix serial baudrate setting on the Arduino Uno
[bertos.git] / bertos / cpu / avr / drv / ser_avr.c
index 7f8cf932c2bd8f6cbd8d219d19988aa37a02cccc..7bfc8d2c3aec4ded98cb4e7e1d1b76a368e4ae41 100644 (file)
         * - Enable only the RX complete interrupt
         */
        #define SER_UART0_BUS_TXINIT do { \
+               UCSR0A = 0; /* The Arduino Uno bootloader turns on U2X0 */ \
                UCSR0B = BV(BIT_RXCIE0) | BV(BIT_RXEN0) | BV(BIT_TXEN0); \
        } while (0)
 #endif