Library to control Dodge LX (83.3k) CAN devices
Dependencies: DodgeRadioLib EthernetWrapperLib OBDIILib mbed
WatchDogTimer.h@2:e8b13ea2881b, 2012-01-02 (annotated)
- Committer:
- rtgree01
- Date:
- Mon Jan 02 03:53:46 2012 +0000
- Revision:
- 2:e8b13ea2881b
- Parent:
- 0:4d16a55d0eec
- Child:
- 5:46f139e53b15
Nonworking Socket update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rtgree01 |
2:e8b13ea2881b | 1 | #ifndef WATCHDOGTIMER_H |
rtgree01 |
2:e8b13ea2881b | 2 | #define WATCHDOGTIMER_H |
rtgree01 |
2:e8b13ea2881b | 3 | |
rtgree01 |
2:e8b13ea2881b | 4 | #include "mbed.h" |
rtgree01 |
2:e8b13ea2881b | 5 | |
rtgree01 |
2:e8b13ea2881b | 6 | // Simon's Watchdog code from |
rtgree01 |
2:e8b13ea2881b | 7 | // http://mbed.org/forum/mbed/topic/508/ |
rtgree01 |
2:e8b13ea2881b | 8 | class WatchDogTimer |
rtgree01 |
2:e8b13ea2881b | 9 | { |
rtgree01 |
2:e8b13ea2881b | 10 | public: |
rtgree01 |
2:e8b13ea2881b | 11 | // Load timeout value in watchdog timer and enable |
rtgree01 |
2:e8b13ea2881b | 12 | void kick(float s); |
rtgree01 |
2:e8b13ea2881b | 13 | |
rtgree01 |
2:e8b13ea2881b | 14 | // "kick" or "feed" the dog - reset the watchdog timer |
rtgree01 |
2:e8b13ea2881b | 15 | // by writing this required bit pattern |
rtgree01 |
2:e8b13ea2881b | 16 | void kick(); |
rtgree01 |
2:e8b13ea2881b | 17 | |
rtgree01 |
2:e8b13ea2881b | 18 | // On reset, indicate a watchdog reset or a pushbutton reset |
rtgree01 |
2:e8b13ea2881b | 19 | bool TimedOut(); |
rtgree01 |
2:e8b13ea2881b | 20 | }; |
rtgree01 |
2:e8b13ea2881b | 21 | |
rtgree01 |
0:4d16a55d0eec | 22 | #endif |