112 wdg_cleared_time = now;
127 return (uint16_t) 0xffff;
139 return (uint16_t) 0xffff;
159 fprintf(stderr,
"Watchdog fired / %d %d %x %x\r\n",
static bool PIOS_WDG_Check()
This function returns true if the watchdog would have expired.
uint32_t PIOS_Thread_Systime(void)
unsigned int wdg_updated_flags
Main PiOS header to include all the compiled in PiOS options.
bool PIOS_WDG_RegisterFlag(uint16_t flag_requested)
Register a module against the watchdog.
bool PIOS_WDG_UpdateFlag(uint16_t flag)
Function called by modules to indicate they are still running.
uint16_t PIOS_WDG_GetBootupFlags()
Returns the flags that were set at bootup.
uint16_t PIOS_WDG_GetActiveFlags()
Returns the currently active flags.
void PIOS_WDG_Clear(void)
Clear the watchdog timer.
bool PIOS_Thread_Period_Elapsed(const uint32_t prev_systime, const uint32_t increment_ms)
Determine if a period has elapsed since a datum.
uint16_t PIOS_WDG_Init()
Initialize the watchdog timer for a specified timeout.
uint32_t wdg_last_update_time
uint32_t wdg_cleared_time
unsigned int wdg_registered_flags