• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * @file    wm_watchdog.h
18  *
19  * @brief   watchdog Driver Module
20  *
21  * @author  dave
22  *
23  * Copyright (c) 2014 Winner Microelectronics Co., Ltd.
24  */
25 #ifndef WM_WATCHDOG_H
26 #define WM_WATCHDOG_H
27 
28 /**
29  * @defgroup Driver_APIs Driver APIs
30  * @brief Driver APIs
31  */
32 
33 /**
34  * @addtogroup Driver_APIs
35  * @{
36  */
37 
38 /**
39  * @defgroup WDG_Driver_APIs WDG Driver APIs
40  * @brief WDG driver APIs
41  */
42 
43 /**
44  * @addtogroup WDG_Driver_APIs
45  * @{
46  */
47 
48 /**
49  * @brief          This function is used to feed the dog.
50  *
51  * @param          None
52  *
53  * @return         None
54  *
55  * @note           None
56  */
57 void tls_watchdog_clr(void);
58 
59 /**
60  * @brief          This function is used to init and start the watchdog.
61  *
62  * @param[in]      usec    microseconds
63  *
64  * @return         None
65  *
66  * @note           None
67  */
68 void tls_watchdog_init(u32 usec);
69 
70 /**
71  * @brief          This function is used to deinit watchdog
72  *
73  * @param[in]     None
74  *
75  * @return         None
76  *
77  * @note           None
78  */
79 void tls_watchdog_deinit(void);
80 
81 /**
82  * @brief          This function is used to reset the system.
83  *
84  * @param          None
85  *
86  * @return         None
87  *
88  * @note           None
89  */
90 void tls_sys_reset(void);
91 
92 /**
93  * @}
94  */
95 
96 /**
97  * @}
98  */
99 
100 #endif /* WM_WATCHDOG_H */
101 
102