From d3ff29c1893323a3749e0c7f45a5d1541430929b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 7 Mar 2008 15:24:00 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@219 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/AVR/avr_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ports') diff --git a/ports/AVR/avr_serial.c b/ports/AVR/avr_serial.c index d9db9efcc..474e9cb20 100644 --- a/ports/AVR/avr_serial.c +++ b/ports/AVR/avr_serial.c @@ -150,11 +150,11 @@ void InitSerial(void) { #ifdef USE_AVR_USART0 /* I/O queues setup.*/ chFDDInit(&SER1, ib1, sizeof ib1, NULL, ob1, sizeof ob1, OutNotify1); - SetUSART0I(UBRR(38400), 0); + SetUSART0I(UBRR(38400), (1 << UCSZ1) | (1 << UCSZ0)); #endif #ifdef USE_AVR_USART1 chFDDInit(&SER2, ib2, sizeof ib2, NULL, ob2, sizeof ob2, OutNotify2); - SetUSART1I(UBRR(38400), 0); + SetUSART1I(UBRR(38400), (1 << UCSZ1) | (1 << UCSZ0)); #endif } -- cgit v1.2.3