Fix serial baudrate setting on the Arduino Uno
[bertos.git] / bertos / cpu / avr / drv / kdebug_avr.c
index 8fa1a4bff62c5fdd27366d267248447661a01989..e5718c90545fbac6fe8a15c803dcdb1fe283cea8 100644 (file)
@@ -355,6 +355,7 @@ INLINE void kdbg_hw_init(void)
                        #if CONFIG_KDEBUG_PORT == 0
                                UBRR0H = (uint8_t)(period>>8);
                                UBRR0L = (uint8_t)period;
+                               UCSR0A = 0; /* The Arduino Uno bootloader turns on U2X0 */
                                KDBG_UART0_BUS_INIT;
                        #else
                                #error Only CONFIG_KDEBUG_PORT 0 is supported for this cpu