RTEMS: bsps/bfin/include/libcpu/wdogRegs.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
wdogRegs.h
1/* Blackfin Watchdog Registers
2 *
3 * Copyright (c) 2008 Kallisti Labs, Los Gatos, CA, USA
4 * written by Allan Hessenflow <allanh@kallisti.com>
5 *
6 * The license and distribution terms for this file may be
7 * found in the file LICENSE in this distribution or at
8 * http://www.rtems.org/license/LICENSE.
9 */
10
11#ifndef _wdogRegs_h_
12#define _wdogRegs_h_
13
14/* register addresses */
15
16#define WDOG_CTL (WDOG_BASE_ADDRESS + 0x0000)
17#define WDOG_CNT (WDOG_BASE_ADDRESS + 0x0004)
18#define WDOG_STAT (WDOG_BASE_ADDRESS + 0x0008)
19
20
21/* register fields */
22
23#define WDOG_CTL_WDRO 0x8000
24#define WDOG_CTL_WDEN_MASK 0x0ff0
25#define WDOG_CTL_WDEN_DISABLE 0x0ad0
26#define WDOG_CTL_WDEV_MASK 0x0006
27#define WDOG_CTL_WDEV_RESET 0x0000
28#define WDOG_CTL_WDEV_NMI 0x0002
29#define WDOG_CTL_WDEV_GPI 0x0004
30#define WDOG_CTL_WDEV_DISABLE 0x0006
31
32
33#endif /* _wdogRegs_h_ */