diff options
-rw-r--r-- | common.h | 2 | ||||
-rw-r--r-- | uart.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -10,6 +10,8 @@ sleep_disable (); #define __unused__ __attribute__ ((unused)) +/* print assert messages */ +#define __ASSERT_USE_STDERR #endif /* COMMON_H */ @@ -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 |