Library to control Dodge LX (83.3k) CAN devices

Dependencies:   DodgeRadioLib EthernetWrapperLib OBDIILib mbed

WatchDogTimer.h

Committer:
rtgree01
Date:
2013-01-25
Revision:
8:92e624c2841e
Parent:
5:46f139e53b15

File content as of revision 8:92e624c2841e:

#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();
    
    void Disable();
};

#endif