50
//------------------------------------------------------------------------
int WdtCheck(void)
{
char data = 0x00;
data = inportb(0xF3);
if( (data & 0x80) ) {
printf("\n Timer expired \n");
return 1;
}else{
return 0;
}
return 0;
}
//------------------------------------------------------------------------
void SetWdtTime(char count)
{
char data = 0x00;
data = inportb(0xF3);
//Set Count switch(count){
case 0:
ClrBit(&data,0);ClrBit(&data,1);ClrBit(&data,2);
break;
case 1:
SetBit(&data,0);ClrBit(&data,1);ClrBit(&data,2);
break;
case 2:
ClrBit(&data,0);SetBit(&data,1);ClrBit(&data,2);
break;
case 4:
SetBit(&data,0);SetBit(&data,1);ClrBit(&data,2);
break;
case 8:
ClrBit(&data,0);ClrBit(&data,1);SetBit(&data,2);
break;
case 16:
SetBit(&data,0);ClrBit(&data,1);SetBit(&data,2);
break;
case 32:
ClrBit(&data,0);SetBit(&data,1);SetBit(&data,2);
break;
case 64:
SetBit(&data,0);SetBit(&data,1);SetBit(&data,2);
break;
default:
ClrBit(&data,0);ClrBit(&data,1);ClrBit(&data,2);
break;
}
Содержание NSP-2C30
Страница 1: ...1 Network Security System NSP 2C30 Always at the forefront of innovation User Manual...
Страница 7: ...7 Chapter 1 General Information...
Страница 11: ...11 Figure 1 1 System Layout of NSP 2C30 1 4 System Layout...
Страница 12: ...12 Front View With different combination of LAN Modules Rear View 1 5 Indicators Features...
Страница 13: ...13 Chapter 2 Preparation...
Страница 24: ...24 Chapter 3 Operation...
Страница 29: ...29 Chapter 4 BIOS Setup...
Страница 47: ...47 Chapter 5 Programming Guide...
Страница 63: ...63 Chapter 6 Q A...