Ignore non-SCSI pins

This commit is contained in:
akuker 2020-07-18 18:00:17 -05:00
parent 64b5c3d0f6
commit da3d0ea494
2 changed files with 22 additions and 1 deletions

View File

@ -140,6 +140,26 @@
#define PIN_IO 25 // IO
#define PIN_BSY 26 // BSY
#define PIN_SEL 27 // SEL
#define ALL_SCSI_PINS \
((1<<PIN_DT0)|\
(1<<PIN_DT1)|\
(1<<PIN_DT2)|\
(1<<PIN_DT3)|\
(1<<PIN_DT4)|\
(1<<PIN_DT5)|\
(1<<PIN_DT6)|\
(1<<PIN_DT7)|\
(1<<PIN_DP)|\
(1<<PIN_ATN)|\
(1<<PIN_RST)|\
(1<<PIN_ACK)|\
(1<<PIN_REQ)|\
(1<<PIN_MSG)|\
(1<<PIN_CD)|\
(1<<PIN_IO)|\
(1<<PIN_BSY)|\
(1<<PIN_SEL))
#endif
#ifdef CONNECT_TYPE_FULLSPEC

View File

@ -1221,10 +1221,11 @@ int main(int argc, char* argv[])
bus->SetACT(FALSE);
spdlog::trace("Going into running mode {}", 1);
printf("ALL_SCSI_PINS %08X\n",ALL_SCSI_PINS);
// Main Loop
while (running) {
// Work initialization
this_sample = bus->Aquire();
this_sample = (bus->Aquire() & ALL_SCSI_PINS);
if(this_sample != prev_sample)
{