Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
libs/Watchdog.h
- Committer:
- Bigcheese
- Date:
- 2014-03-02
- Revision:
- 3:f151d08d335c
- Parent:
- 2:1df0b61d3b5a
File content as of revision 3:f151d08d335c:
#ifndef _WATCHDOG_H #define _WATCHDOG_H #include <stdint.h> #include "Module.h" typedef enum { WDT_MRI, WDT_RESET, } WDT_ACTION; class Watchdog : public Module { public: Watchdog(uint32_t timeout, WDT_ACTION action); void feed(); void on_module_loaded(); void on_idle(void*); }; #endif /* _WATCHDOG_H */