From 42e32ed74655e98e9f2d5a0152a047dcf9e72806 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 8 Jul 2014 16:47:03 +0200 Subject: Enable assert messages --- common.h | 2 ++ uart.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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<