LEON3: watchdog use common timer defines

This commit is contained in:
Daniel Hellstrom
2015-02-05 08:07:15 +01:00
parent 5ba4906673
commit b55aa49dbd

View File

@@ -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));
}