mirror of
https://github.com/thewesker/RASCSI.git
synced 2025-12-22 13:21:17 -05:00
Ignore non-SCSI pins
This commit is contained in:
@@ -140,6 +140,26 @@
|
|||||||
#define PIN_IO 25 // IO
|
#define PIN_IO 25 // IO
|
||||||
#define PIN_BSY 26 // BSY
|
#define PIN_BSY 26 // BSY
|
||||||
#define PIN_SEL 27 // SEL
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef CONNECT_TYPE_FULLSPEC
|
#ifdef CONNECT_TYPE_FULLSPEC
|
||||||
|
|||||||
@@ -1221,10 +1221,11 @@ int main(int argc, char* argv[])
|
|||||||
bus->SetACT(FALSE);
|
bus->SetACT(FALSE);
|
||||||
|
|
||||||
spdlog::trace("Going into running mode {}", 1);
|
spdlog::trace("Going into running mode {}", 1);
|
||||||
|
printf("ALL_SCSI_PINS %08X\n",ALL_SCSI_PINS);
|
||||||
// Main Loop
|
// Main Loop
|
||||||
while (running) {
|
while (running) {
|
||||||
// Work initialization
|
// Work initialization
|
||||||
this_sample = bus->Aquire();
|
this_sample = (bus->Aquire() & ALL_SCSI_PINS);
|
||||||
|
|
||||||
if(this_sample != prev_sample)
|
if(this_sample != prev_sample)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user