Library to control Dodge LX (83.3k) CAN devices

Dependencies:   DodgeRadioLib EthernetWrapperLib OBDIILib mbed

WatchDogTimer.h

Committer:
rtgree01
Date:
2012-01-02
Revision:
2:e8b13ea2881b
Parent:
0:4d16a55d0eec
Child:
5:46f139e53b15

File content as of revision 2:e8b13ea2881b:

#ifndef WATCHDOGTIMER_H
#define WATCHDOGTIMER_H

#include "mbed.h"

// Simon's Watchdog code from
// http://mbed.org/forum/mbed/topic/508/
class WatchDogTimer
{
public:
// Load timeout value in watchdog timer and enable
    void kick(float s);

// "kick" or "feed" the dog - reset the watchdog timer
// by writing this required bit pattern
    void kick();
    
// On reset, indicate a watchdog reset or a pushbutton reset  
    bool TimedOut();
};

#endif