aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-07-08 16:47:03 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-07-08 16:47:03 +0200
commit42e32ed74655e98e9f2d5a0152a047dcf9e72806 (patch)
tree01e8e7e44018fb2d56fb21a748c2338f4b359386
parent58c6c18733fb36a23e906e99df7f9a5956bb4a24 (diff)
downloadhourglass-42e32ed74655e98e9f2d5a0152a047dcf9e72806.tar.gz
hourglass-42e32ed74655e98e9f2d5a0152a047dcf9e72806.tar.bz2
hourglass-42e32ed74655e98e9f2d5a0152a047dcf9e72806.zip
Enable assert messages
-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