Dodge/Chrysler Radio Emulator Connect to Interior CAN bus

Dependencies:   mbed SDFileSystem

Committer:
rtgree01
Date:
Mon Jan 31 05:13:04 2011 +0000
Revision:
0:9bc41d70bdd3

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rtgree01 0:9bc41d70bdd3 1 #ifndef WATCHDOGTIMER_H
rtgree01 0:9bc41d70bdd3 2 #define WATCHDOGTIMER_H
rtgree01 0:9bc41d70bdd3 3
rtgree01 0:9bc41d70bdd3 4 #include "mbed.h"
rtgree01 0:9bc41d70bdd3 5
rtgree01 0:9bc41d70bdd3 6 // Simon's Watchdog code from
rtgree01 0:9bc41d70bdd3 7 // http://mbed.org/forum/mbed/topic/508/
rtgree01 0:9bc41d70bdd3 8 class WatchDogTimer
rtgree01 0:9bc41d70bdd3 9 {
rtgree01 0:9bc41d70bdd3 10 public:
rtgree01 0:9bc41d70bdd3 11 // Load timeout value in watchdog timer and enable
rtgree01 0:9bc41d70bdd3 12 void kick(float s);
rtgree01 0:9bc41d70bdd3 13
rtgree01 0:9bc41d70bdd3 14 // "kick" or "feed" the dog - reset the watchdog timer
rtgree01 0:9bc41d70bdd3 15 // by writing this required bit pattern
rtgree01 0:9bc41d70bdd3 16 void kick();
rtgree01 0:9bc41d70bdd3 17 };
rtgree01 0:9bc41d70bdd3 18
rtgree01 0:9bc41d70bdd3 19 #endif