diff options
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/mcf52x2/serial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu/mcf52x2/serial.c b/cpu/mcf52x2/serial.c index 1cde1b6..c66bdef 100644 --- a/cpu/mcf52x2/serial.c +++ b/cpu/mcf52x2/serial.c @@ -23,6 +23,7 @@ #include <common.h> #include <command.h> +#include <watchdog.h> #include <asm/mcfuart.h> @@ -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(); } |