diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-07-08 16:47:03 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-07-08 16:47:03 +0200 |
commit | 42e32ed74655e98e9f2d5a0152a047dcf9e72806 (patch) | |
tree | 01e8e7e44018fb2d56fb21a748c2338f4b359386 | |
parent | 58c6c18733fb36a23e906e99df7f9a5956bb4a24 (diff) | |
download | hourglass-42e32ed74655e98e9f2d5a0152a047dcf9e72806.tar.gz hourglass-42e32ed74655e98e9f2d5a0152a047dcf9e72806.tar.bz2 hourglass-42e32ed74655e98e9f2d5a0152a047dcf9e72806.zip |
Enable assert messages
-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 |