00001 #ifndef CYGONCE_MOD_REGS_WDT_H 00002 #define CYGONCE_MOD_REGS_WDT_H 00003 00004 //========================================================================== 00005 // 00006 // mod_regs_wdt.h 00007 // 00008 // Watchdog Timer Register 00009 // 00010 //========================================================================== 00011 //####ECOSGPLCOPYRIGHTBEGIN#### 00012 // ------------------------------------------- 00013 // This file is part of eCos, the Embedded Configurable Operating System. 00014 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. 00015 // 00016 // eCos is free software; you can redistribute it and/or modify it under 00017 // the terms of the GNU General Public License as published by the Free 00018 // Software Foundation; either version 2 or (at your option) any later version. 00019 // 00020 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY 00021 // WARRANTY; without even the implied warranty of MERCHANTABILITY or 00022 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00023 // for more details. 00024 // 00025 // You should have received a copy of the GNU General Public License along 00026 // with eCos; if not, write to the Free Software Foundation, Inc., 00027 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00028 // 00029 // As a special exception, if other files instantiate templates or use macros 00030 // or inline functions from this file, or you compile this file and link it 00031 // with other works to produce a work based on this file, this file does not 00032 // by itself cause the resulting work to be covered by the GNU General Public 00033 // License. However the source code for this file must still be made available 00034 // in accordance with section (3) of the GNU General Public License. 00035 // 00036 // This exception does not invalidate any other reasons why a work based on 00037 // this file might be covered by the GNU General Public License. 00038 // 00039 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. 00040 // at http://sources.redhat.com/ecos/ecos-license/ 00041 // ------------------------------------------- 00042 //####ECOSGPLCOPYRIGHTEND#### 00043 //========================================================================== 00044 //#####DESCRIPTIONBEGIN#### 00045 // 00046 // Author(s): yoshinori sato 00047 // Contributors: yoshinori sato, Uwe Kindler 00048 // Date: 2003-12-06 00049 // 00050 //####DESCRIPTIONEND#### 00051 // 00052 //========================================================================== 00053 00054 00055 //========================================================================== 00056 // DOXYGEN FILE HEADER 00061 //========================================================================== 00062 00063 #define CYGARC_TCSRR 0xFFFFBC 00064 #define CYGARC_TCSRW 0xFFFFBC 00065 #define CYGARC_TCNTR 0xFFFFBD 00066 #define CYGARC_TCNTW 0xFFFFBC 00067 #define CYGARC_RSTCSRW 0xFFFFBE 00068 #define CYGARC_RSTCSRR 0xFFFFBF 00069 00070 #define CYGARC_TCNT_MAGIC 0x5A00 00071 #define CYGARC_TCSR_MAGIC 0xA500 00072 #define CYGARC_RSTCSR_WOVF_MAGIG 0xA500 00073 #define CYGARC_RSTCSR_DATA_MAGIC 0x5A00 00074 00075 #define CYGARC_TCSR_OVF 0x80 00076 #define CYGARC_TCSR_WT 0x40 00077 #define CYGARC_TCSR_TME 0x20 00078 #define CYGARC_TCSR_CKS2 0x04 00079 #define CYGARC_TCSR_CKS1 0x02 00080 #define CYGARC_TCSR_CKS0 0x01 00081 00082 #define CYGARC_RSTCSR_RSTE 0x40 // Reset signal is generated if TCNT overflows 00083 #define CYGARC_RSTCSR_WOFV 0x80 // Overflow flag - set if TCNT overflows 00084 00085 #define CYGARC_TCSR_CKS_2 0x00 00086 #define CYGARC_TCSR_CKS_64 0x01 00087 #define CYGARC_TCSR_CKS_128 0x02 00088 #define CYGARC_TCSR_CKS_512 0x03 00089 #define CYGARC_TCSR_CKS_2048 0x04 00090 #define CYGARC_TCSR_CKS_8192 0x05 00091 #define CYGARC_TCSR_CKS_32768 0x06 00092 #define CYGARC_TCSR_CKS_131072 0x07 00093 00094 //--------------------------------------------------------------------------- 00095 #endif // End of #define CYGONCE_MOD_REGS_WDT_H 00096
1.3.5