71
MIO-5850 User Manual
Appendix D
E
C Watchdog
Timer
S
ample Code
// read command
for (i=0; i<len; i++)
{
if (ec_wait_obf())
return 0xFF;
*datp++ = inb(DAT_PORT);
}
}
else
{
// write command
for (i=0; i<len; i++)
{
if (ec_wait_ibe())
return 0xFF;
outb(DAT_PORT, *datp++);
}
}
return 0;
}
//
================================================================
=============
// ec_wdt_setup
//
================================================================
=============
uint8_t ec_wdt_setup(uint8_t wdt_type, uint32_t ms)
{
uint8_t buf[4];
buf[0] = (ms >> 0) & 0xFF;
buf[1] = (ms >> 8) & 0xFF;
buf[2] = (ms >> 16) & 0xFF;
buf[3] = (ms >> 24) & 0xFF;
if (ec_prot_trans(WDT_CMD_WRITE, wdt_type, 0, 4, buf))
return 0xFF;
return 0;
}
Содержание MIO-5850
Страница 1: ...User Manual MIO 5850 ...
Страница 6: ...MIO 5850 User Manual vi ...
Страница 20: ...MIO 5850 User Manual 12 ...
Страница 21: ...Chapter 3 3 AMI BIOS Setup ...
Страница 47: ...Chapter 4 4 Installation ...
Страница 65: ...Appendix B B How to install Win7 64 bit ...
Страница 75: ...Appendix D D EC Watchdog Timer Sample Code ...
Страница 81: ...73 MIO 5850 User Manual Appendix D EC Watchdog Timer Sample Code ...