ESOS32
ESOSOn32-bitProcessors
esos_wdog.h
Go to the documentation of this file.
1 /*
2  * "Copyright (c) 2019 J. W. Bruce ("AUTHOR(S)")"
3  * All rights reserved.
4  * (J. W. Bruce, jwbruce_AT_tntech.edu, Tennessee Tech University)
5  *
6  * Permission to use, copy, modify, and distribute this software and its
7  * documentation for any purpose, without fee, and without written agreement is
8  * hereby granted, provided that the above copyright notice, the following
9  * two paragraphs and the authors appear in all copies of this software.
10  *
11  * IN NO EVENT SHALL THE "AUTHORS" BE LIABLE TO ANY PARTY FOR
12  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
13  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE "AUTHORS"
14  * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15  *
16  * THE "AUTHORS" SPECIFICALLY DISCLAIMS ANY WARRANTIES,
17  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
18  * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
19  * ON AN "AS IS" BASIS, AND THE "AUTHORS" HAS NO OBLIGATION TO
20  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
21  *
22  * Please maintain this header in its entirety when copying/modifying
23  * these files.
24  *
25  *
26  */
27 
39 #ifndef ESOS_WDOG_H
40 #define ESOS_WDOG_H
41 
42 
43 #include "esos.h"
44 
45 
46 /* ******************************************************************
47  *
48  * Prototypes for all the hardware-independent routines herein
49  *
50  * *****************************************************************/
51 void _esos_wdog_initWatchdog(uint32_t u32_ticksBetweenWatchdogResets );
52 void esos_wdog_feedWatchdog( void );
53 
65 uint32_t esos_wdog_getWatchdogFedTicks(void);
66 
79 
96 
113 uint32_t esos_wdog_getTicksWatchdogPeriod(void);
114 
115 /* ******************************************************************
116  *
117  * Prototypes for all the hardware specific routines we expect
118  *
119  * *****************************************************************/
120 void _esos_hw_wdog_initWatchdog(uint32_t u32_msBetweenWatchdogResets );
121 void _esos_hw_wdog_feedWatchdog(void);
122 
123 // ******** G L O B A L S ***************
124 extern volatile uint32_t __esos_wdog_ticksWatchdogLastFed;
125 
126 #endif // ESOS_WDOG_H
_esos_hw_wdog_feedWatchdog
void _esos_hw_wdog_feedWatchdog(void)
esos_wdog_getTicksSinceWatchdogFed
uint32_t esos_wdog_getTicksSinceWatchdogFed(void)
Definition: esos_wdog.c:120
esos_wdog_getWatchdogFedTicks
uint32_t esos_wdog_getWatchdogFedTicks(void)
Definition: esos_wdog.c:105
esos.h
_esos_wdog_initWatchdog
void _esos_wdog_initWatchdog(uint32_t u32_msBetweenWatchdogResets)
Definition: esos_wdog.c:66
esos_wdog_getTicksWatchdogPeriod
uint32_t esos_wdog_getTicksWatchdogPeriod(void)
Definition: esos_wdog.c:159
esos_wdog_getTicksUntilWatchdogReset
uint32_t esos_wdog_getTicksUntilWatchdogReset(void)
Definition: esos_wdog.c:139
_esos_hw_wdog_initWatchdog
void _esos_hw_wdog_initWatchdog(uint32_t u32_ticksBetweenWatchdogResets)
esos_wdog_feedWatchdog
void esos_wdog_feedWatchdog(void)
Definition: esos_wdog.c:87