Commit 1f1bac2029fa1259e233357dc1617343d9c5abfd
authorPeter Ross <pross@xvid.org>
Thu, 29 Nov 2012 12:05:51 +0000 (23:05 +1100)
committerJakob Gruber <jakob.gruber@gmail.com>
Sat, 1 Dec 2012 08:39:50 +0000 (09:39 +0100)
simavr/sim/avr_uart.c

index c42edafc2e09a93615458b34d9431e424c23d0dc..f723ee4d20f1cda21913e8000a3741757481d11b 100644 (file)
@@ -231,6 +231,9 @@ void avr_uart_reset(struct avr_io_t *io)
        avr_cycle_timer_cancel(avr, avr_uart_txc_raise, p);
        uart_fifo_reset(&p->input);
 
+        avr_regbit_set(avr, p->ucsz);
+        avr_regbit_clear(avr, p->ucsz2);
+
        // DEBUG allow printf without fiddling with enabling the uart
        avr_regbit_set(avr, p->txen);
        p->usec_per_byte = 100;