/* ------------------------------------------------------------ */ /* demo 6 : D/O demo */ /* step 1 : connect a DB-24C to CN1 of PIO-D144 */ /* step 2 : run DEMO6.EXE */ /* step 3 : check the LED's of DB-24C will turn on sequentially */ /* ------------------------------------------------------------ */ #include "PIO.H" #include "PIO-D144.H" int main() { int i; char c; WORD wBoards; WORD wBase,wIrq,wSubVendor,wSubDevice,wSubAux,wSlotBus,wSlotDevice; clrscr(); PIO_DriverInit(&wBoards,0x80,0x01,0x00); /* for PIO-D144 */ printf("\n(1) Threr are %d PIO-D144 Cards in this PC",wBoards); if ( wBoards==0 ) { putch(0x07); putch(0x07); putch(0x07); printf("(1) There are no PIO-D144 card in this PC !!!\n"); exit(0); } printf("\n(2) The Configuration Space -> wBase"); for(i=0; i