Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 42 of file parallel.c.
Referenced by Dispatch().
{ int count=0; int status; int wait=0; do { status=LP_S; count++; } while ( count < 500000 && !(status & LP_PBUSY) ); if (count==500000) { DPRINT("printer_putchar(): timed out\n"); return; } WRITE_PORT_UCHAR((PUCHAR)LP_B,ch); while (wait != 10000) { wait++; } WRITE_PORT_UCHAR((PUCHAR)LP_C, (LP_PSELECP | LP_PINITP | LP_PSTROBE )); while (wait) { wait--; } WRITE_PORT_UCHAR((PUCHAR)LP_C, LP_PSELECP | LP_PINITP); }