Do not use the proprietary system timer for the DaynaPort delay work-around

This commit is contained in:
Uwe Seimet 2023-11-14 16:09:44 +01:00
parent 71780449ff
commit 7b8ae25005
1 changed files with 3 additions and 1 deletions

View File

@ -278,7 +278,9 @@ int GPIOBUS::SendHandShake(uint8_t *buf, int count, int delay_after_bytes)
if (i == delay_after_bytes) {
spdlog::trace("DELAYING for " + to_string(SCSI_DELAY_SEND_DATA_DAYNAPORT_US) + " us after " +
to_string(delay_after_bytes) + " bytes");
SysTimer::SleepUsec(SCSI_DELAY_SEND_DATA_DAYNAPORT_US);
EnableIRQ();
usleep(SCSI_DELAY_SEND_DATA_DAYNAPORT_US);
DisableIRQ();
}
// Set the DATA signals