mirror of https://github.com/akuker/RASCSI.git
Fix compile error
This commit is contained in:
parent
e43a05c0cb
commit
9839c879fc
|
@ -55,88 +55,87 @@ void GPIOBUS_Virtual::Cleanup()
|
||||||
|
|
||||||
void GPIOBUS_Virtual::Reset()
|
void GPIOBUS_Virtual::Reset()
|
||||||
{
|
{
|
||||||
#if defined(__x86_64__) || defined(__X86__)
|
return;
|
||||||
return;
|
// #else
|
||||||
#else
|
// int i;
|
||||||
int i;
|
// int j;
|
||||||
int j;
|
|
||||||
|
|
||||||
// Turn off active signal
|
// // Turn off active signal
|
||||||
SetControl(PIN_ACT, ACT_OFF);
|
// SetControl(PIN_ACT, ACT_OFF);
|
||||||
|
|
||||||
// Set all signals to off
|
// // Set all signals to off
|
||||||
for (i = 0;; i++) {
|
// for (i = 0;; i++) {
|
||||||
j = SignalTable[i];
|
// j = SignalTable[i];
|
||||||
if (j < 0) {
|
// if (j < 0) {
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
|
|
||||||
SetSignal(j, OFF);
|
// SetSignal(j, OFF);
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (actmode == mode_e::TARGET) {
|
// if (actmode == mode_e::TARGET) {
|
||||||
// Target mode
|
// // Target mode
|
||||||
|
|
||||||
// Set target signal to input
|
// // Set target signal to input
|
||||||
SetControl(PIN_TAD, TAD_IN);
|
// SetControl(PIN_TAD, TAD_IN);
|
||||||
SetMode(PIN_BSY, IN);
|
// SetMode(PIN_BSY, IN);
|
||||||
SetMode(PIN_MSG, IN);
|
// SetMode(PIN_MSG, IN);
|
||||||
SetMode(PIN_CD, IN);
|
// SetMode(PIN_CD, IN);
|
||||||
SetMode(PIN_REQ, IN);
|
// SetMode(PIN_REQ, IN);
|
||||||
SetMode(PIN_IO, IN);
|
// SetMode(PIN_IO, IN);
|
||||||
|
|
||||||
// Set the initiator signal to input
|
// // Set the initiator signal to input
|
||||||
SetControl(PIN_IND, IND_IN);
|
// SetControl(PIN_IND, IND_IN);
|
||||||
SetMode(PIN_SEL, IN);
|
// SetMode(PIN_SEL, IN);
|
||||||
SetMode(PIN_ATN, IN);
|
// SetMode(PIN_ATN, IN);
|
||||||
SetMode(PIN_ACK, IN);
|
// SetMode(PIN_ACK, IN);
|
||||||
SetMode(PIN_RST, IN);
|
// SetMode(PIN_RST, IN);
|
||||||
|
|
||||||
// Set data bus signals to input
|
// // Set data bus signals to input
|
||||||
SetControl(PIN_DTD, DTD_IN);
|
// SetControl(PIN_DTD, DTD_IN);
|
||||||
SetMode(PIN_DT0, IN);
|
// SetMode(PIN_DT0, IN);
|
||||||
SetMode(PIN_DT1, IN);
|
// SetMode(PIN_DT1, IN);
|
||||||
SetMode(PIN_DT2, IN);
|
// SetMode(PIN_DT2, IN);
|
||||||
SetMode(PIN_DT3, IN);
|
// SetMode(PIN_DT3, IN);
|
||||||
SetMode(PIN_DT4, IN);
|
// SetMode(PIN_DT4, IN);
|
||||||
SetMode(PIN_DT5, IN);
|
// SetMode(PIN_DT5, IN);
|
||||||
SetMode(PIN_DT6, IN);
|
// SetMode(PIN_DT6, IN);
|
||||||
SetMode(PIN_DT7, IN);
|
// SetMode(PIN_DT7, IN);
|
||||||
SetMode(PIN_DP, IN);
|
// SetMode(PIN_DP, IN);
|
||||||
} else {
|
// } else {
|
||||||
// Initiator mode
|
// // Initiator mode
|
||||||
|
|
||||||
// Set target signal to input
|
// // Set target signal to input
|
||||||
SetControl(PIN_TAD, TAD_IN);
|
// SetControl(PIN_TAD, TAD_IN);
|
||||||
SetMode(PIN_BSY, IN);
|
// SetMode(PIN_BSY, IN);
|
||||||
SetMode(PIN_MSG, IN);
|
// SetMode(PIN_MSG, IN);
|
||||||
SetMode(PIN_CD, IN);
|
// SetMode(PIN_CD, IN);
|
||||||
SetMode(PIN_REQ, IN);
|
// SetMode(PIN_REQ, IN);
|
||||||
SetMode(PIN_IO, IN);
|
// SetMode(PIN_IO, IN);
|
||||||
|
|
||||||
// Set the initiator signal to output
|
// // Set the initiator signal to output
|
||||||
SetControl(PIN_IND, IND_OUT);
|
// SetControl(PIN_IND, IND_OUT);
|
||||||
SetMode(PIN_SEL, OUT);
|
// SetMode(PIN_SEL, OUT);
|
||||||
SetMode(PIN_ATN, OUT);
|
// SetMode(PIN_ATN, OUT);
|
||||||
SetMode(PIN_ACK, OUT);
|
// SetMode(PIN_ACK, OUT);
|
||||||
SetMode(PIN_RST, OUT);
|
// SetMode(PIN_RST, OUT);
|
||||||
|
|
||||||
// Set the data bus signals to output
|
// // Set the data bus signals to output
|
||||||
SetControl(PIN_DTD, DTD_OUT);
|
// SetControl(PIN_DTD, DTD_OUT);
|
||||||
SetMode(PIN_DT0, OUT);
|
// SetMode(PIN_DT0, OUT);
|
||||||
SetMode(PIN_DT1, OUT);
|
// SetMode(PIN_DT1, OUT);
|
||||||
SetMode(PIN_DT2, OUT);
|
// SetMode(PIN_DT2, OUT);
|
||||||
SetMode(PIN_DT3, OUT);
|
// SetMode(PIN_DT3, OUT);
|
||||||
SetMode(PIN_DT4, OUT);
|
// SetMode(PIN_DT4, OUT);
|
||||||
SetMode(PIN_DT5, OUT);
|
// SetMode(PIN_DT5, OUT);
|
||||||
SetMode(PIN_DT6, OUT);
|
// SetMode(PIN_DT6, OUT);
|
||||||
SetMode(PIN_DT7, OUT);
|
// SetMode(PIN_DT7, OUT);
|
||||||
SetMode(PIN_DP, OUT);
|
// SetMode(PIN_DP, OUT);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Initialize all signals
|
// // Initialize all signals
|
||||||
signals = 0;
|
// signals = 0;
|
||||||
#endif // ifdef __x86_64__ || __X86__
|
// #endif // ifdef __x86_64__ || __X86__
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPIOBUS_Virtual::SetENB(bool ast)
|
void GPIOBUS_Virtual::SetENB(bool ast)
|
||||||
|
|
Loading…
Reference in New Issue