OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [Common/] [drivers/] [LuminaryMicro/] [watchdog.h] - Blame information for rev 615

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.