ARK-5420 User Manual
60
if (data & 0x04)
{
//If bit 2 is set (which means error occurs on
SMBUS), error occurs on SMBUS which is rarely the case
result = 1;//SMBUS error
break;
}
}
returnresult;
}
//////////////////////////////////////////////////////////////
///////////////////////////////////////
BYTE
check_data(WORD addr)
{
int i;
BYTE data;
for(i = 0; i <= 6; i++)
{
data = inportb(addr);
if (data != 0)
break;
}
returndata;
}
//////////////////////////////////////////////////////////////
///////////////////////////////////////
void
newiodelay()
//Shorter delay
{
outportb(0xeb, 0);//IO port 0xeb No real device occu-
pies. Write a value to this port can realize delay function.
You can also choose other method according to the real situa-
tion.
}
//////////////////////////////////////////////////////////////
///////////////////////////////////////
void
moredelay()
//Longer delay
{
int i;
for (i = 0; i < 20; i++)
{
Содержание ARK-5420 Series
Страница 8: ...ARK 5420 User Manual viii ...
Страница 12: ...ARK 5420 User Manual xii ...
Страница 18: ...ARK 5420 User Manual 6 ...
Страница 19: ...Chapter 2 2 Hardware installation Sections include Introduction Jumpers and Connectors I O Connectors ...
Страница 35: ...Chapter 4 4 BIOS Setting ...
Страница 64: ...ARK 5420 User Manual 52 ...
Страница 65: ...Chapter 6 6 GPIO Programming This chapter introduces GPIO pro gramming Guide ...
Страница 74: ...ARK 5420 User Manual 62 ...
Страница 75: ...Appendix A A Programming the Watchdog Timer ...
Страница 79: ...67 ARK 5420 User Manual Appendix A Programming the Watchdog Timer ...