|
|
1.1 ! root 1: #ifdef ATT7300 ! 2: #include <intvectors_7300.h> ! 3: #include <pi7300.h> ! 4: #endif ! 5: /* Since ATT7300 parallel interface has interrupts enabled all the time, ! 6: we had better arm them or face system crash on Centronics-pin-10 signal */ ! 7: lpinit() ! 8: { ! 9: #ifdef ATT7300 ! 10: extern int piint(); ! 11: ! 12: PIVEC = piint; /* save C scratch regs, then jsr's to lpoin */ ! 13: #endif ! 14: } ! 15: lpopen() ! 16: { ! 17: } ! 18: lpclose() ! 19: { ! 20: } ! 21: lpwrite() ! 22: { ! 23: } ! 24: lpputc() ! 25: { ! 26: } ! 27: lpcntl() ! 28: { ! 29: } ! 30: lpoin() ! 31: { ! 32: #ifdef ATT7300 ! 33: *PI_DATA = 0; /* ack the PI by writing to data reg */ ! 34: #endif ! 35: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.