projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix serial baudrate setting on the Arduino Uno
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
kdebug_avr.c
diff --git
a/bertos/cpu/avr/drv/kdebug_avr.c
b/bertos/cpu/avr/drv/kdebug_avr.c
index 8fa1a4bff62c5fdd27366d267248447661a01989..e5718c90545fbac6fe8a15c803dcdb1fe283cea8 100644
(file)
--- a/
bertos/cpu/avr/drv/kdebug_avr.c
+++ b/
bertos/cpu/avr/drv/kdebug_avr.c
@@
-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