Invert switch condition

This commit is contained in:
Uwe Seimet 2023-11-20 09:41:46 +01:00
parent a6d3186a47
commit 8043dd8e6b
2 changed files with 8 additions and 7 deletions

View File

@ -40,7 +40,7 @@ int GPIOBUS::CommandHandShake(vector<uint8_t> &buf)
bool ack = WaitACK(true);
#ifndef SCSI_COMPLIANT_HANDSHAKE
#ifdef NO_SCSI_COMPLIANT_HANDSHAKE
SysTimer::SleepNsec(SCSI_DELAY_BUS_SETTLE_DELAY_NS);
#endif
@ -68,7 +68,7 @@ int GPIOBUS::CommandHandShake(vector<uint8_t> &buf)
ack = WaitACK(true);
#ifndef SCSI_COMPLIANT_HANDSHAKE
#ifdef NO_SCSI_COMPLIANT_HANDSHAKE
SysTimer::SleepNsec(SCSI_DELAY_BUS_SETTLE_DELAY_NS);
#endif
@ -102,7 +102,7 @@ int GPIOBUS::CommandHandShake(vector<uint8_t> &buf)
ack = WaitACK(true);
#ifndef SCSI_COMPLIANT_HANDSHAKE
#ifdef NO_SCSI_COMPLIANT_HANDSHAKE
SysTimer::SleepNsec(SCSI_DELAY_BUS_SETTLE_DELAY_NS);
#endif
@ -134,7 +134,7 @@ int GPIOBUS::ReceiveHandShake(uint8_t *buf, int count)
const bool ack = WaitACK(true);
#ifndef SCSI_COMPLIANT_HANDSHAKE
#ifdef NO_SCSI_COMPLIANT_HANDSHAKE
SysTimer::SleepNsec(SCSI_DELAY_BUS_SETTLE_DELAY_NS);
#endif
@ -165,7 +165,7 @@ int GPIOBUS::ReceiveHandShake(uint8_t *buf, int count)
break;
}
#ifndef SCSI_COMPLIANT_HANDSHAKE
#ifdef NO_SCSI_COMPLIANT_HANDSHAKE
SysTimer::SleepNsec(SCSI_DELAY_BUS_SETTLE_DELAY_NS);
#endif

View File

@ -22,5 +22,6 @@
#undef USE_SEL_EVENT_ENABLE
#endif
// Use improved SCSI compliant handshake which does not require the system timer and provides a small performance benefit
#define SCSI_COMPLIANT_HANDSHAKE
// Disable improved SCSI compliant handshake. The improved handshake does not require the system timer and
// provides a small performance benefit.
//#define NO_SCSI_COMPLIANT_HANDSHAKE