iSensor-SPI-Buffer  1.15
Firmware for the iSensor-SPI-Buffer board to enable full throughput buffered data capture on Analog Devices IMUs
watchdog.h
Go to the documentation of this file.
1 
11 #ifndef INC_WATCHDOG_H_
12 #define INC_WATCHDOG_H_
13 
14 /* Header includes require for prototypes */
15 #include <stdint.h>
16 
17 /* Public function prototypes */
18 
19 /* @cond DOXYGEN_IGNORE */
21 void Watchdog_Feed();
22 void Watchdog_Enable(uint32_t timeout_ms);
23 /* @endcond */
24 
26 #define WATCHDOG_BASE_FREQ 40000
27 
29 #define WATCHDOG_RELOAD_KEY 0x0000AAAA
30 
32 #define WATCHDOG_START_KEY 0x0000CCCC
33 
35 #define WATCHDOG_UNLOCK_KEY 0x00005555
36 
37 #endif /* INC_WATCHDOG_H_ */
reg.h
Header file for iSensor-SPI-Buffer register interfacing module.
watchdog.h
Header file for iSensor-SPI-Buffer watchdog timer module.
Watchdog_Feed
void Watchdog_Feed()
Feeds the watchdog timer. Should be called periodically from main loop.
Definition: watchdog.c:25
Watchdog_Check_Status
void Watchdog_Check_Status()
Check if system reset from independent watch dog timeout and sets the appropriate STATUS flag.
Definition: watchdog.c:35
Watchdog_Enable
void Watchdog_Enable(uint32_t timeout_ms)
Enables watch dog reset functionality.
Definition: watchdog.c:60
WATCHDOG_RELOAD_KEY
#define WATCHDOG_RELOAD_KEY
Definition: watchdog.h:29
WATCHDOG_START_KEY
#define WATCHDOG_START_KEY
Definition: watchdog.h:32
WATCHDOG_BASE_FREQ
#define WATCHDOG_BASE_FREQ
Definition: watchdog.h:26
WATCHDOG_UNLOCK_KEY
#define WATCHDOG_UNLOCK_KEY
Definition: watchdog.h:35