#ifndef hal_leon_watchdog_h #define hal_leon_watchdog_h /* Cesar project {{{ * * Copyright (C) 2009 Spidcom * * <<>> * * }}} */ /** * \file hal/leon/watchdog.h * \brief Leon watchdog support. * \ingroup hal_leon */ /** Watchdog base address. */ #define LEON_WATCHDOG_BASE 0x8000004c /** Watchdog counter register. */ #define LEON_WATCHDOG_COUNTER (* (volatile u32 *) (LEON_WATCHDOG_BASE + 0x00)) /** Watchdog counter reset value, about 2 sec. */ #define LEON_WATCHDOG_RESET_VALUE (2 * 1024 * 1024) extern inline void leon_watchdog_reset (void) { LEON_WATCHDOG_COUNTER = LEON_WATCHDOG_RESET_VALUE; } #endif /* hal_leon_watchdog_h */