mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-10 02:29:33 +00:00
Invert switch condition
This commit is contained in:
parent
a6d3186a47
commit
8043dd8e6b
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user