aboutsummaryrefslogtreecommitdiffstats
path: root/ports/AVR/avr_serial.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-07 15:24:00 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-07 15:24:00 +0000
commitd3ff29c1893323a3749e0c7f45a5d1541430929b (patch)
treef98fe2b1e30708c655bcd39781c2ea721c0ee581 /ports/AVR/avr_serial.c
parent959e29936fee8ac545f3ee0451a21a161f631680 (diff)
downloadChibiOS-d3ff29c1893323a3749e0c7f45a5d1541430929b.tar.gz
ChibiOS-d3ff29c1893323a3749e0c7f45a5d1541430929b.tar.bz2
ChibiOS-d3ff29c1893323a3749e0c7f45a5d1541430929b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@219 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports/AVR/avr_serial.c')
-rw-r--r--ports/AVR/avr_serial.c4
1 files changed, 2 insertions, 2 deletions
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
}