![background image](http://html1.mh-extra.com/html/ibase-technology/asb200-953/asb200-953_user-manual_3224008088.webp)
80
ASB200-953 User Manual
}
bTime = strtol (argv[1], endptr, 10);
printf("System will reset after %d seconds\n", bTime);
if (bTime)
{ EnableWDT(bTime); }
else
{ DisableWDT(); }
return 0;
}
//---------------------------------------------------------------------------
void EnableWDT(int interval)
{
unsigned char bBuf;
bBuf = Get_ F81804_Reg(0x2B);
bBuf &= (~0x20);
Set_ F81804_Reg(0x2B, bBuf); //Enable WDTO
Set_ F81804_LD(0x07);
//switch to logic device 7
Set_ F81804_Reg(0x30, 0x01); //enable timer
bBuf = Get_ F81804_Reg(0xF5);
bBuf &= (~0x0F);
bBuf |= 0x52;
Set_ F81804_Reg(0xF5, bBuf); //count mode is second
Set_ F81804_Reg(0xF6, interval); //set timer
bBuf = Get_ F81804_Reg(0xFA);
bBuf |= 0x01;
Set_ F81804_Reg(0xFA, bBuf); //enable WDTO output
bBuf = Get_ F81804_Reg(0xF5);
bBuf |= 0x20;
Set_ F81804_Reg(0xF5, bBuf); //start counting
}
//---------------------------------------------------------------------------
void DisableWDT(void)
{
unsigned char bBuf;
Set_ F81804_LD(0x07);
//switch to logic device 7
bBuf = Get_ F81804_Reg(0xFA);
bBuf &= ~0x01;
Set_ F81804_Reg(0xFA, bBuf); //disable WDTO output
bBuf = Get_ F81804_Reg(0xF5);
bBuf &= ~0x20;
bBuf |= 0x40;
Set_ F81804_Reg(0xF5, bBuf); //disable WDT
}
Содержание ASB200-953
Страница 1: ...ASB200 953 Fanless System with 3 5 Disk Size SBC System User s Manual Version 1 0 March 2022...
Страница 8: ......
Страница 16: ...8 ASB200 953 User Manual Oblique View ASB200 953...
Страница 17: ...General Information ASB200 953 User Manual 9 1 ASB210 953...
Страница 18: ...10 ASB200 953 User Manual 1 7 Dimensions Unit mm ASB200 953...
Страница 19: ...General Information ASB200 953 User Manual 11 1 ASB210 953...
Страница 29: ...Hardware Configuration ASB200 953 User Manual 21 2 2 3 Jumper Connector Locations on IB953...
Страница 65: ...BIOS Setup ASB200 953 User Manual 57 4 4 4 4 PCH FW Configuration...
Страница 70: ...62 ASB200 953 User Manual...
Страница 72: ...64 ASB200 953 User Manual 4 4 10 AMI Graphic Output Protocol Policy...
Страница 75: ...BIOS Setup ASB200 953 User Manual 67 4 4 4 13 NVMe Configuration...
Страница 77: ...BIOS Setup ASB200 953 User Manual 69 4 4 5 1 2 VT d...