|
|
@ -240,7 +240,7 @@ TQStringList SerialPort::ports( unsigned probeResult )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//BEGIN class ParallelPort
|
|
|
|
//BEGIN class ParallelPort
|
|
|
|
const int IRTQ_MODE_BIT = 1 << 20; // Controls if pin 10 (Ack) causes interrupts
|
|
|
|
const int IRQ_MODE_BIT = 1 << 20; // Controls if pin 10 (Ack) causes interrupts
|
|
|
|
const int INPUT_MODE_BIT = 1 << 21; // Controls if the data pins are input or output
|
|
|
|
const int INPUT_MODE_BIT = 1 << 21; // Controls if the data pins are input or output
|
|
|
|
const int ALWAYS_INPUT_PINS = ParallelPort::STATUS_PINS;
|
|
|
|
const int ALWAYS_INPUT_PINS = ParallelPort::STATUS_PINS;
|
|
|
|
|
|
|
|
|
|
|
@ -279,8 +279,8 @@ void ParallelPort::reset()
|
|
|
|
m_reg[Data] = 0;
|
|
|
|
m_reg[Data] = 0;
|
|
|
|
m_reg[Status] = 0;
|
|
|
|
m_reg[Status] = 0;
|
|
|
|
m_reg[Control] = 0;
|
|
|
|
m_reg[Control] = 0;
|
|
|
|
m_outputPins = INPUT_MODE_BIT | IRTQ_MODE_BIT;
|
|
|
|
m_outputPins = INPUT_MODE_BIT | IRQ_MODE_BIT;
|
|
|
|
m_inputPins = ALWAYS_INPUT_PINS | INPUT_MODE_BIT | IRTQ_MODE_BIT;
|
|
|
|
m_inputPins = ALWAYS_INPUT_PINS | INPUT_MODE_BIT | IRQ_MODE_BIT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|