aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.h2
-rw-r--r--uart.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/common.h b/common.h
index fed4dbd..26b371d 100644
--- a/common.h
+++ b/common.h
@@ -10,6 +10,8 @@
sleep_disable ();
#define __unused__ __attribute__ ((unused))
+/* print assert messages */
+#define __ASSERT_USE_STDERR
#endif /* COMMON_H */
diff --git a/uart.c b/uart.c
index 2eebe16..6906a8c 100644
--- a/uart.c
+++ b/uart.c
@@ -44,8 +44,9 @@ void uartInit () {
/* Set frame format: 8 data, 1 stop bit, even parity */
UCSR0C = (1<<UPM01) | (0 << UPM00) | (0<<USBS0)|(3<<UCSZ00);
- /* redirect stdout */
+ /* redirect stdout/stderr */
stdout = &mystdout;
+ stderr = &mystdout;
}
#if 0