ChibiOS/HAL  6.1.0
hal_wdg_lld.c
Go to the documentation of this file.
1 /*
2  ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 */
16 
17 /**
18  * @file hal_wdg_lld.c
19  * @brief WDG Driver subsystem low level driver source template.
20  *
21  * @addtogroup WDG
22  * @{
23  */
24 
25 #include "hal.h"
26 
27 #if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
28 
29 /*===========================================================================*/
30 /* Driver local definitions. */
31 /*===========================================================================*/
32 
33 /*===========================================================================*/
34 /* Driver exported variables. */
35 /*===========================================================================*/
36 
37 #if (PLATFORM_WDG_USE_WDG1 == TRUE) || defined(__DOXYGEN__)
38 WDGDriver WDGD1;
39 #endif
40 
41 /*===========================================================================*/
42 /* Driver local variables. */
43 /*===========================================================================*/
44 
45 /*===========================================================================*/
46 /* Driver local functions. */
47 /*===========================================================================*/
48 
49 /*===========================================================================*/
50 /* Driver interrupt handlers. */
51 /*===========================================================================*/
52 
53 /*===========================================================================*/
54 /* Driver exported functions. */
55 /*===========================================================================*/
56 
57 /**
58  * @brief Low level WDG driver initialization.
59  *
60  * @notapi
61  */
62 void wdg_lld_init(void) {
63 
64 }
65 
66 /**
67  * @brief Configures and activates the WDG peripheral.
68  *
69  * @param[in] wdgp pointer to the @p WDGDriver object
70  *
71  * @notapi
72  */
73 void wdg_lld_start(WDGDriver *wdgp) {
74 
75  (void)wdgp;
76 }
77 
78 /**
79  * @brief Deactivates the WDG peripheral.
80  *
81  * @param[in] wdgp pointer to the @p WDGDriver object
82  *
83  * @notapi
84  */
85 void wdg_lld_stop(WDGDriver *wdgp) {
86 
87  (void)wdgp;
88 }
89 
90 /**
91  * @brief Reloads WDG's counter.
92  *
93  * @param[in] wdgp pointer to the @p WDGDriver object
94  *
95  * @notapi
96  */
97 void wdg_lld_reset(WDGDriver * wdgp) {
98 
99  (void)wdgp;
100 }
101 
102 #endif /* HAL_USE_WDG */
103 
104 /** @} */
void wdg_lld_start(WDGDriver *wdgp)
Configures and activates the WDG peripheral.
Definition: hal_wdg_lld.c:73
HAL subsystem header.
void wdg_lld_stop(WDGDriver *wdgp)
Deactivates the WDG peripheral.
Definition: hal_wdg_lld.c:85
void wdg_lld_reset(WDGDriver *wdgp)
Reloads WDG's counter.
Definition: hal_wdg_lld.c:97
Structure representing an WDG driver.
Definition: hal_wdg_lld.h:74
void wdg_lld_init(void)
Low level WDG driver initialization.
Definition: hal_wdg_lld.c:62