[PATCH 069/111] LEON3: watchdog use common timer defines

Daniel Hellstrom daniel at gaisler.com
Thu Feb 26 16:39:11 UTC 2015


---
 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 15e2142..37e0d43 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));
 }
 
-- 
1.7.0.4




More information about the devel mailing list