ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
*********************************************************************************************************
*                                                AR100 SYSTEM
*                                     AR100 Software System Develop Kits
*                                                watchdog  module
*
*                                    (c) Copyright 2012-2016, Superm Wu China
*                                             All Rights Reserved
*
* File    : Watchdog.h
* By      : Superm Wu
* Version : v1.0
* Date    : 2012-9-18
* Descript: watchdog controller public interfaces.
* Update  : date                auther      ver     notes
*           2012-9-18 19:08:23  Superm Wu   1.0     Create this file.
*********************************************************************************************************
*/
 
#ifndef __WATCHDOG_H__
#define __WATCHDOG_H_
#ifdef CFG_WATCHDOG_USED
/*
*********************************************************************************************************
*                                       INIT WATCHDOG
*
* Description:  initialize watchdog.
*
* Arguments  :  none.
*
* Returns    :  OK if initialize watchdog succeeded, others if failed.
*********************************************************************************************************
*/
s32 watchdog_init(void);
 
/*
*********************************************************************************************************
*                                       EXIT WATCHDOG
*
* Description:  exit watchdog.
*
* Arguments  :  none.
*
* Returns    :  OK if exit watchdog succeeded, others if failed.
*********************************************************************************************************
*/
s32 watchdog_exit(void);
 
/*
*********************************************************************************************************
*                                       ENABLE WATCHDOG
*
* Description:  enable watchdog.
*
* Arguments  :  none.
*
* Returns    :  OK if enable watchdog succeeded, others if failed.
*********************************************************************************************************
*/
s32 watchdog_enable(void);
 
/*
*********************************************************************************************************
*                                       DISABLE WATCHDOG
*
* Description:  disable watchdog.
*
* Arguments  :  none.
*
* Returns    :  OK if disable watchdog succeeded, others if failed.
*********************************************************************************************************
*/
s32 watchdog_disable(void);
 
#else
static inline s32 watchdog_init(void) { return 0; }
static inline s32 watchdog_exit(void) { return 0; }
#endif /* CFG_WATCHDOG_USED */
 
#endif /* __WATCHDOG_H__ */