projects
/
simavr
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a7463c
)
tests: Revert a uart patch
author
Michel Pollet
<buserror@gmail.com>
Wed, 14 Sep 2011 08:23:27 +0000
(09:23 +0100)
committer
Michel Pollet
<buserror@gmail.com>
Wed, 14 Sep 2011 08:23:27 +0000
(09:23 +0100)
We do need the translation, as it's not one, but generation of \n\r
Signed-off-by: Michel Pollet <buserror@gmail.com>
tests/atmega88_uart_echo.c
patch
|
blob
|
history
diff --git
a/tests/atmega88_uart_echo.c
b/tests/atmega88_uart_echo.c
index
e65fd56
..
31f0ab4
100644
(file)
--- a/
tests/atmega88_uart_echo.c
+++ b/
tests/atmega88_uart_echo.c
@@
-36,11
+36,10
@@
const struct avr_mmcu_vcd_trace_t _mytrace[] _MMCU_ = {
{ AVR_MCU_VCD_SYMBOL("GPIOR1"), .what = (void*)&GPIOR1, },
};
-static int uart_putchar(char c, FILE *stream)
{
-#if 0 // don't want character translation for this test
+static int uart_putchar(char c, FILE *stream)
+{
if (c == '\n')
uart_putchar('\r', stream);
-#endif
loop_until_bit_is_set(UCSR0A, UDRE0);
UDR0 = c;
return 0;