]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_LM3S102_Rowley/hw_include/watchdog.h
First version under SVN is V4.0.1
[freertos] / Demo / CORTEX_LM3S102_Rowley / hw_include / watchdog.h
1 //*****************************************************************************\r
2 //\r
3 // watchdog.h - Prototypes for the Watchdog Timer API\r
4 //\r
5 // Copyright (c) 2005,2006 Luminary Micro, Inc.  All rights reserved.\r
6 //\r
7 // Software License Agreement\r
8 //\r
9 // Luminary Micro, Inc. (LMI) is supplying this software for use solely and\r
10 // exclusively on LMI's Stellaris Family of microcontroller products.\r
11 //\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.  Any use in violation\r
14 // of the foregoing restrictions may subject the user to criminal sanctions\r
15 // under applicable laws, as well as to civil liability for the breach of the\r
16 // terms and conditions of this license.\r
17 //\r
18 // THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED\r
19 // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF\r
20 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.\r
21 // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR\r
22 // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.\r
23 //\r
24 // This is part of revision 523 of the Stellaris Driver Library.\r
25 //\r
26 //*****************************************************************************\r
27 \r
28 #ifndef __WATCHDOG_H__\r
29 #define __WATCHDOG_H__\r
30 \r
31 #ifdef __cplusplus\r
32 extern "C"\r
33 {\r
34 #endif\r
35 \r
36 //*****************************************************************************\r
37 //\r
38 // Prototypes for the APIs.\r
39 //\r
40 //*****************************************************************************\r
41 extern tBoolean WatchdogRunning(unsigned long ulBase);\r
42 extern void WatchdogEnable(unsigned long ulBase);\r
43 extern void WatchdogResetEnable(unsigned long ulBase);\r
44 extern void WatchdogResetDisable(unsigned long ulBase);\r
45 extern void WatchdogLock(unsigned long ulBase);\r
46 extern void WatchdogUnlock(unsigned long ulBase);\r
47 extern tBoolean WatchdogLockState(unsigned long ulBase);\r
48 extern void WatchdogReloadSet(unsigned long ulBase, unsigned long ulLoadVal);\r
49 extern unsigned long WatchdogReloadGet(unsigned long ulBase);\r
50 extern unsigned long WatchdogValueGet(unsigned long ulBase);\r
51 extern void WatchdogIntRegister(unsigned long ulBase, void(*pfnHandler)(void));\r
52 extern void WatchdogIntUnregister(unsigned long ulBase);\r
53 extern void WatchdogIntEnable(unsigned long ulBase);\r
54 extern unsigned long WatchdogIntStatus(unsigned long ulBase, tBoolean bMasked);\r
55 extern void WatchdogIntClear(unsigned long ulBase);\r
56 extern void WatchdogStallDisable(unsigned long ulBase);\r
57 extern void WatchdogStallDisable(unsigned long ulBase);\r
58 \r
59 #ifdef __cplusplus\r
60 }\r
61 #endif\r
62 \r
63 #endif // __WATCHDOG_H__\r