SFBWatchdog.h File Reference

'Platform independent' watchdog timer routines. More...

#include "SFBTypes.h"

Include dependency graph for SFBWatchdog.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool watchdogActive ()
void watchdogSetInterval (u32 feedIntervalMs)
u32 watchdogGetInterval ()
bool watchdogStart (u32 feedIntervalMs)
bool watchdogFeed ()
bool watchdogGetTimeoutFlag ()
void watchdogClearTimeoutFlag ()
void watchdogSuicide () __attribute__((noreturn))
 Force a watchdog timeout to kill the system.
bool watchdogItWasSuicide ()
 True if watchdogGetTimeoutFlag() is only true because of a deliberate crash.


Detailed Description

'Platform independent' watchdog timer routines.

Author:
David H. Ackley.
Date:
(C) 2009 All rights reserved.
Code License:
The GNU Lesser General Public License
License Note:
All code samples shown in documentation are placed into the public domain.

Function Documentation

void watchdogSuicide (  ) 

Force a watchdog timeout to kill the system.

This method first starts the watchdog if it's not already going. Then it resets the watchdog timeout to a short time special code (which watchdogItWasSuicide looks for), and then blocks until the watchdog timeout fires.


Generated on Mon May 10 04:45:14 2010 for SFB by doxygen 1.5.9