/* ndemo1 : LED1, LED2, LED3 demo */ /* step 1 : default shipping of PCI-TMC12A */ /* step 2 : run NDEMO1.EXE */ /* step 3 : the LED1/2/3 of TMC12A will turn on sequentially */ /* ----------------------------------------------------------- */ #include "PCITMC12.H" WORD pci_tmc12_do(WORD wDo); WORD pci_tmc12_do2(WORD wXor); WORD wBaseAddr,wIrq,wPLX; int main() { int i,j; WORD wBoards,wRetVal; char c; clrscr(); wRetVal=PTMC12_DriverInit(&wBoards); printf("\n(1) Threr are %d PCI-TMC12 Cards in this PC",wBoards); if ( wBoards==0 ) { putch(0x07); putch(0x07); putch(0x07); printf("(1) There are no PCI-TMC12 card in this PC !!!\n"); exit(0); } printf("\n(2) Show the Configuration Space of all PCI-TMC12:"); for(i=0; i