12 #include "../includes/rpi_watchdog.h"
Watchdog for the Raspberry PI.
RpiWatchdogStep m_rpiWatchdogStep
@ WAIT_FOR_FIRST_HEARTBEAT
RpiWatchdog()
Default constructor.
void update()
This should be called by the main state machine every 1s.
void disable()
Disable countdown mode (used for debug)
void resetCountDown()
When the UI software on the Raspberry PI sends a heartbeat, reset countdown.
#define PIN_ENABLE_PWR_RASP
#define PWR_RASP_INACTIVE
#define COUNTDOWN_IN_S
Number of seconds with no heartbeat after which the RPi should be restarted.