From 4af099bda90fe602aff96b2fd914fca89f320c5c Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 9 May 2006 13:49:12 +0200 Subject: Fix watchdog issues for ColdFire boards. --- cpu/mcf52x2/serial.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpu/mcf52x2') diff --git a/cpu/mcf52x2/serial.c b/cpu/mcf52x2/serial.c index 1cde1b688..c66bdef76 100644 --- a/cpu/mcf52x2/serial.c +++ b/cpu/mcf52x2/serial.c @@ -23,6 +23,7 @@ #include #include +#include #include @@ -174,7 +175,9 @@ void serial_puts (const char *s) { } int serial_getc(void) { - while(!rs_is_char()); + while(!rs_is_char()) + WATCHDOG_RESET(); + return rs_get_char(); } -- cgit v1.2.3