diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2015-02-05 08:07:15 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-02-26 15:25:45 +0100 |
commit | 59f808d4f75b9df6e1267fe7ea883ca65f846ae1 (patch) | |
tree | 8d45969476c1379ae74d0fb5473aba5adbbf9d78 | |
parent | 139cfca97fa72ca25397aac2ec3abb78c2dc87fc (diff) |
LEON3: watchdog use common timer defines
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/timer/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c b/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c index 15e2142503..37e0d43094 100644 --- a/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c +++ b/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c @@ -66,7 +66,7 @@ void bsp_watchdog_reload(int watchdog, unsigned int reload_value) /* Kick watchdog, and clear interrupt pending bit */ bsp_watchdogs[watchdog].timer->reload = reload_value; bsp_watchdogs[watchdog].timer->ctrl = - (LEON3_GPTIMER_LD | LEON3_GPTIMER_EN) | + (GPTIMER_TIMER_CTRL_LD | GPTIMER_TIMER_CTRL_EN) | (bsp_watchdogs[watchdog].timer->ctrl & ~(1<<4)); } |