Simple library to manage the WatchDog timer, tested on LPC1768
WatchDogTimer.h
- Committer:
- wyunreal
- Date:
- 2015-01-03
- Revision:
- 0:3744cb611b63
File content as of revision 0:3744cb611b63:
/** * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ */ #ifndef WATCH_DOG_TIMER_H #define WATCH_DOG_TIMER_H #include "mbed.h" class WatchDogTimer { public: static const int SYSTEM_RESET_NORMAL = 1; static const int SYSTEM_RESET_WATCH_DOG = 2; WatchDogTimer(float seconds); void feed(); static int systemResetReason(); }; #endif