pc386 LPT question
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Thu Dec 1 19:19:28 UTC 2005
Hi,
I finally have the old software for our scout's pinewood derby
timer and it is a DOS program using a BIOS call to read the printer
status.
The macro to read the status of the starting gate and finish
looks like this:
#define START_GATE (0x80)
#define ALL_LANES (0x70)
#define LANE_2 (0x40)
#define LANE_1 (0x20)
#define LANE_3 (0x10)
/* bit #3 in the printer status regiser is connected to the start gate */
#define GATE_POSITION \
(_bios_printer(_PRINTER_STATUS,0,uiDummy) & START_GATE)
/* define macro to test if a car has crossed the finish line */
#define FINISH_STATUS \
(_bios_printer(_PRINTER_STATUS,0,uiDummy) & ALL_LANES)
Does anyone know how to get the same information with or without a BIOS
call using the pc386 BSP?
Please... Thanks. :)
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list