Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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