
82
MB998
User’s 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_F81964_Reg(0x2B);
bBuf &= (~0x20);
Set_F81964_Reg(0x2B, bBuf);
//Enable WDTO
Set_F81964_LD(0x07);
//switch to logic device 7
Set_F81964_Reg(0x30, 0x01);
//enable timer
bBuf = Get_F81964_Reg(0xF5);
bBuf &= (~0x0F);
bBuf |= 0x52;
Set_F81964_Reg(0xF5, bBuf);
//count mode is second
Set_F81964_Reg(0xF6, interval);
//set timer
bBuf = Get_F81964_Reg(0xFA);
bBuf |= 0x01;
Set_F81964_Reg(0xFA, bBuf);
//enable WDTO output
bBuf = Get_F81964_Reg(0xF5);
bBuf |= 0x20;
Set_F81964_Reg(0xF5, bBuf);
//start counting
}
//---------------------------------------------------------------------------
void DisableWDT(void)
{
unsigned char bBuf;
Set_F81964_LD(0x07);
//switch to logic device 7
bBuf = Get_F81964_Reg(0xFA);
bBuf &= ~0x01;
Set_F81964_Reg(0xFA, bBuf);
//disable WDTO output
bBuf = Get_F81964_Reg(0xF5);
bBuf &= ~0x20;
bBuf |= 0x40;
Set_F81964_Reg(0xF5, bBuf);
//disable WDT
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
Содержание MB998 Series
Страница 8: ...viii MB998 User s Manual This page is intentionally left blank...
Страница 14: ...6 MB998 User s Manual 1 6 Block Diagram...
Страница 15: ...General Information MB998 User s Manual 7 1 1 7 Product View Top View Bottom View...
Страница 16: ...8 MB998 User s Manual I O View 1 8 Board Dimensions...
Страница 20: ...12 MB998 User s Manual 2 3 Jumper Connector Locations...
Страница 22: ...14 MB998 User s Manual 2 4 2 JP2 AT ATX Select Function Pin Illustration ATX Default Open AT Close 1 1...
Страница 34: ...26 MB998 User s Manual 2 5 7 J6 M 2 M Key NVME CPU 2 5 8 J7 PWM Programming Factory use only...
Страница 36: ...28 MB998 User s Manual 2 5 10 J9 eSPI Debug Factory use only...
Страница 38: ...30 MB998 User s Manual 2 5 12 J11 DDR5 UDIMM CHA 0 2 5 13 J12 DDR5 UDIMM CHB 0...
Страница 39: ...Hardware Configuration MB998 User s Manual 31 2 2 5 14 J13 M 2 E Key Socket 2 5 15 J14 M 2 M Key Socket...
Страница 40: ...32 MB998 User s Manual 2 5 16 J15 M 2 B Key Socket 2 5 17 J16 SIM Card Slot...
Страница 43: ...Hardware Configuration MB998 User s Manual 35 2 2 5 20 J19 SPI Flash Connector Factory use only...
Страница 48: ...40 MB998 User s Manual This page is intentionally left blank...
Страница 73: ...BIOS Setup MB998 User s Manual 65 4 4 4 11 NVMe Configuration...
Страница 83: ...BIOS Setup MB998 User s Manual 75 4 4 9 MEBx...
Страница 84: ...76 MB998 User s Manual This page is intentionally left blank...