Library to control Dodge LX (83.3k) CAN devices

Dependencies:   DodgeRadioLib EthernetWrapperLib OBDIILib mbed

WatchDogTimer.h

Committer:
rtgree01
Date:
2012-01-24
Revision:
5:46f139e53b15
Parent:
2:e8b13ea2881b

File content as of revision 5:46f139e53b15:

#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