3 gpio programming – Acrosser AR-B8170 User Manual
Page 32
AR-B8170 User Manual
32
delay(1000);
}
textcolor(LIGHTRED);
gotoxy(18,10);
if(Signal==0xD0)
cprintf("If you can see this message, Reset system is Fail");
else
cprintf("If you can see this message, Watchdog Signal is occur.");
return 1;
}
//===========================================================================
// Function : Show_Help()
// Input
: -
// Change : -
// Return : -
// Description : Show Title string.
//===========================================================================
void Show_Help()
{
clrscr();
printf("WatchDog Test for Vortex86DX \n\n");
printf("Signal Select \n");
printf("1 : IRQ3 2 : IRQ4 4 : IRQ5 \n");
printf("4 : IRQ6 5 : IRQ7 6 : IRQ9 \n");
printf("7 : IRQ10 8 : IRQ11 9 : IRQ12\n");
printf("10: IRQ14 11: IRQ15 12: NMI \n");
printf("13: System Reset \n\n");
printf("Sample: \n");
printf(" WDT.EXE 1 10 \n");
printf("For 10 seconds to IRQ3. \n\n");
printf(" WDT.EXE 13 10 \n");
printf("For 10 seconds to system reset.\n");
}
4.3 GPIO Programming
Data Port
(GPIO0 Base Address 0 Refers to the Register of index 61h-60h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO1 Base Address 1 Refers to the Register of index 63h-62h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO2 Base Address 2 Refers to the Register of index 65h-64h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO3 Base Address 3 Refers to the Register of index 67h-66h, IDSEL = AD18/SB of PCI
Configuration Register)
(GPIO4 Base Address 4 Refers to the Register of index 69h-68h, IDSEL = AD18/SB of PCI
Configuration Register)