Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:40

0001 /*  Blackfin Watchdog Registers
0002  *
0003  *  Copyright (c) 2008 Kallisti Labs, Los Gatos, CA, USA
0004  *             written by Allan Hessenflow <allanh@kallisti.com>
0005  *
0006  *  The license and distribution terms for this file may be
0007  *  found in the file LICENSE in this distribution or at
0008  *  http://www.rtems.org/license/LICENSE.
0009  */
0010 
0011 #ifndef _wdogRegs_h_
0012 #define _wdogRegs_h_
0013 
0014 /* register addresses */
0015 
0016 #define WDOG_CTL                (WDOG_BASE_ADDRESS + 0x0000)
0017 #define WDOG_CNT                (WDOG_BASE_ADDRESS + 0x0004)
0018 #define WDOG_STAT               (WDOG_BASE_ADDRESS + 0x0008)
0019 
0020 
0021 /* register fields */
0022 
0023 #define WDOG_CTL_WDRO                                 0x8000
0024 #define WDOG_CTL_WDEN_MASK                            0x0ff0
0025 #define WDOG_CTL_WDEN_DISABLE                         0x0ad0
0026 #define WDOG_CTL_WDEV_MASK                            0x0006
0027 #define WDOG_CTL_WDEV_RESET                           0x0000
0028 #define WDOG_CTL_WDEV_NMI                             0x0002
0029 #define WDOG_CTL_WDEV_GPI                             0x0004
0030 #define WDOG_CTL_WDEV_DISABLE                         0x0006
0031 
0032 
0033 #endif /* _wdogRegs_h_ */