From: Peter Ross Date: Thu, 29 Nov 2012 12:05:51 +0000 (+1100) Subject: uart: default to 8-bit word length on reset X-Git-Tag: v1.1~27 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=1f1bac2029fa1259e233357dc1617343d9c5abfd;p=sx%2Fsimavr.git uart: default to 8-bit word length on reset --- diff --git a/simavr/sim/avr_uart.c b/simavr/sim/avr_uart.c index c42edaf..f723ee4 100644 --- a/simavr/sim/avr_uart.c +++ b/simavr/sim/avr_uart.c @@ -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;