watchdog.h File Reference

Go to the source code of this file.

Functions

void wd_set_interval_ms (unsigned int period_ms, unsigned long int tick_per_ms)
 This function set the seconds period.It is likely with WD_SetInterval. Just this function calculate the value to set the register automatically . More...
 
static void wd_start (void)
 start watchdog. ie enable watchdog More...
 
static void wd_stop (void)
 stop watchdog. ie disable watchdog More...
 
static void wd_clear (void)
 clear watchdog. More...
 

Function Documentation

◆ wd_set_interval_ms()

void wd_set_interval_ms ( unsigned int  period_ms,
unsigned long int  tick_per_ms 
)

This function set the seconds period.It is likely with WD_SetInterval. Just this function calculate the value to set the register automatically .

Parameters
[in]period_s- The seconds to set. unit is second
Returns
none

◆ wd_start()

static void wd_start ( void  )
inlinestatic

start watchdog. ie enable watchdog

Parameters
[in]none
Returns
none

◆ wd_stop()

static void wd_stop ( void  )
inlinestatic

stop watchdog. ie disable watchdog

Parameters
[in]none
Returns
none

◆ wd_clear()

static void wd_clear ( void  )
inlinestatic

clear watchdog.

Parameters
[in]none
Returns
none