Add a watchdog for a crashed host.

This commit is contained in:
Jonathan Naylor
2016-02-02 20:23:37 +00:00
parent 62df65003b
commit c468842e46
3 changed files with 26 additions and 1 deletions
+4
View File
@@ -46,6 +46,8 @@ public:
bool hasTXOverflow();
bool hasRXOverflow();
void resetWatchdog();
private:
#if defined(__MBED__)
DigitalOut m_pinPTT;
@@ -79,6 +81,8 @@ private:
uint16_t m_overflow;
uint16_t m_overcount;
volatile uint32_t m_watchdog;
};
#endif