1 //*****************************************************************************
\r
3 // watchdog.h - Prototypes for the Watchdog Timer API
\r
5 // Copyright (c) 2005-2008 Luminary Micro, Inc. All rights reserved.
\r
7 // Software License Agreement
\r
9 // Luminary Micro, Inc. (LMI) is supplying this software for use solely and
\r
10 // exclusively on LMI's microcontroller products.
\r
12 // The software is owned by LMI and/or its suppliers, and is protected under
\r
13 // applicable copyright laws. All rights are reserved. You may not combine
\r
14 // this software with "viral" open-source software in order to form a larger
\r
15 // program. Any use in violation of the foregoing restrictions may subject
\r
16 // the user to criminal sanctions under applicable laws, as well as to civil
\r
17 // liability for the breach of the terms and conditions of this license.
\r
19 // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
\r
20 // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
\r
21 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
\r
22 // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
\r
23 // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
\r
25 // This is part of revision 2523 of the Stellaris Peripheral Driver Library.
\r
27 //*****************************************************************************
\r
29 #ifndef __WATCHDOG_H__
\r
30 #define __WATCHDOG_H__
\r
32 //*****************************************************************************
\r
34 // If building with a C++ compiler, make all of the definitions in this header
\r
35 // have a C binding.
\r
37 //*****************************************************************************
\r
43 //*****************************************************************************
\r
45 // Prototypes for the APIs.
\r
47 //*****************************************************************************
\r
48 extern tBoolean WatchdogRunning(unsigned long ulBase);
\r
49 extern void WatchdogEnable(unsigned long ulBase);
\r
50 extern void WatchdogResetEnable(unsigned long ulBase);
\r
51 extern void WatchdogResetDisable(unsigned long ulBase);
\r
52 extern void WatchdogLock(unsigned long ulBase);
\r
53 extern void WatchdogUnlock(unsigned long ulBase);
\r
54 extern tBoolean WatchdogLockState(unsigned long ulBase);
\r
55 extern void WatchdogReloadSet(unsigned long ulBase, unsigned long ulLoadVal);
\r
56 extern unsigned long WatchdogReloadGet(unsigned long ulBase);
\r
57 extern unsigned long WatchdogValueGet(unsigned long ulBase);
\r
58 extern void WatchdogIntRegister(unsigned long ulBase, void(*pfnHandler)(void));
\r
59 extern void WatchdogIntUnregister(unsigned long ulBase);
\r
60 extern void WatchdogIntEnable(unsigned long ulBase);
\r
61 extern unsigned long WatchdogIntStatus(unsigned long ulBase, tBoolean bMasked);
\r
62 extern void WatchdogIntClear(unsigned long ulBase);
\r
63 extern void WatchdogStallEnable(unsigned long ulBase);
\r
64 extern void WatchdogStallDisable(unsigned long ulBase);
\r
66 //*****************************************************************************
\r
68 // Mark the end of the C bindings section for C++ compilers.
\r
70 //*****************************************************************************
\r
75 #endif // __WATCHDOG_H__
\r