Advantech MIO-5850 User Manual page 80

Table of Contents

Advertisement

//
================================================================
=============
// ec_wdt_start
//
================================================================
=============
uint8_t ec_wdt_start(void)
{
uint8_t buf[2];
buf[0] = WDT_CTL_START;
if (ec_prot_trans(WDT_CMD_WRITE, WDT_CTL, 0, 1, buf))
return 0xFF;
return 0;
}
//
================================================================
=============
// ec_wdt_stop
//
================================================================
=============
uint8_t ec_wdt_stop(void)
{
uint8_t buf[2];
buf[0] = WDT_CTL_STOP;
if (ec_prot_trans(WDT_CMD_WRITE, WDT_CTL, 0, 1, buf))
return 0xFF;
return 0;
}
//
================================================================
=============
// ec_wdt_clear : need to be issued before watchdog time-out
//
================================================================
=============
uint8_t
MIO-5850 User Manual
72

Advertisement

Table of Contents
loading

Table of Contents