dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_wdg.c File Reference
#include <pios.h>
#include <pios_thread.h>

Go to the source code of this file.

Functions

static bool PIOS_WDG_Check ()
 This function returns true if the watchdog would have expired. More...
 
uint16_t PIOS_WDG_Init ()
 Initialize the watchdog timer for a specified timeout. More...
 
bool PIOS_WDG_RegisterFlag (uint16_t flag_requested)
 Register a module against the watchdog. More...
 
bool PIOS_WDG_UpdateFlag (uint16_t flag)
 Function called by modules to indicate they are still running. More...
 
uint16_t PIOS_WDG_GetBootupFlags ()
 Returns the flags that were set at bootup. More...
 
uint16_t PIOS_WDG_GetActiveFlags ()
 Returns the currently active flags. More...
 
void PIOS_WDG_Clear (void)
 Clear the watchdog timer. More...
 

Variables

unsigned int wdg_registered_flags
 
unsigned int wdg_updated_flags
 
uint32_t wdg_cleared_time
 
uint32_t wdg_last_update_time
 
bool wdg_expired