at91_wdt.h
Go to the documentation of this file.00001 00042 /* 00043 * Copyright (C) 2005-2006 by egnite Software GmbH. All rights reserved. 00044 * 00045 * Redistribution and use in source and binary forms, with or without 00046 * modification, are permitted provided that the following conditions 00047 * are met: 00048 * 00049 * 1. Redistributions of source code must retain the above copyright 00050 * notice, this list of conditions and the following disclaimer. 00051 * 2. Redistributions in binary form must reproduce the above copyright 00052 * notice, this list of conditions and the following disclaimer in the 00053 * documentation and/or other materials provided with the distribution. 00054 * 3. Neither the name of the copyright holders nor the names of 00055 * contributors may be used to endorse or promote products derived 00056 * from this software without specific prior written permission. 00057 * 00058 * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS 00059 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00060 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00061 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE 00062 * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00063 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00064 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 00065 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 00066 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00067 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 00068 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00069 * SUCH DAMAGE. 00070 * 00071 * For additional information see http://www.ethernut.de/ 00072 */ 00073 00074 #ifndef AT91_WDT_H 00075 #define AT91_WDT_H 00076 00077 00079 /*\{*/ 00080 #define WDT_CR_OFF 0x00000000 00081 #define WDT_CR (*((reg32_t *)(WDT_BASE + WDT_CR_OFF))) 00082 #define WDT_WDRSTT 0 00083 #define WDT_KEY 0xA5000000 00084 /*\}*/ 00085 00087 /*\{*/ 00088 #define WDT_MR_OFF 0x00000004 00089 #define WDT_MR (*((reg32_t *)(WDT_BASE + WDT_MR_OFF))) 00090 #define WDT_WDV_MASK 0x00000FFF 00091 #define WDT_WDV_SHIFT 0 00092 #define WDT_WDFIEN 12 00093 #define WDT_WDRSTEN 13 00094 #define WDT_WDRPROC 14 00095 #define WDT_WDDIS 15 00096 #define WDT_WDD_MASK 0x0FFF0000 00097 #define WDT_WDD_SHIFT 16 00098 #define WDT_WDDBGHLT 28 00099 #define WDT_WDIDLEHLT 29 00100 /*\}*/ 00101 00103 /*\{*/ 00104 #define WDT_SR_OFF 0x00000008 00105 #define WDT_SR (*((reg32_t *)(WDT_BASE + WDT_SR_OFF))) 00106 #define WDT_WDUNF 0 00107 #define WDT_WDERR 1 00108 /*\}*/ 00109 00110 00111 #endif /* AT91_WDT_H */
