From ceb6da764b3e56b9080599e0fc39303ed3f0439f Mon Sep 17 00:00:00 2001 From: androda Date: Fri, 15 Apr 2022 06:14:59 -0600 Subject: [PATCH] Boot tested Tested to boot beige G3 and Q700, both with XCVR mode on and off on appropriate hardware --- src/BlueSCSI.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index c3b8aca..5e636e4 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -1575,12 +1575,6 @@ void loop() } enableResetJmp(); -#if XCVR == 1 - // Reconfigure target pins to output mode, after resetting their values - GPIOB->regs->BSRR = 0x000000E8; // MSG, CD, REQ, IO - GPIOA->regs->BSRR = 0x00000200; // BSY - SCSI_TARGET_ACTIVE(); -#endif // Set BSY to-when selected SCSI_BSY_ACTIVE(); // Turn only BSY output ON, ACTIVE @@ -1590,6 +1584,13 @@ void loop() // Wait until SEL becomes inactive while(isHigh(gpio_read(SEL)) && isLow(gpio_read(BSY))) { } + +#if XCVR == 1 + // Reconfigure target pins to output mode, after resetting their values + GPIOB->regs->BSRR = 0x000000E8; // MSG, CD, REQ, IO +// GPIOA->regs->BSRR = 0x00000200; // BSY +#endif + SCSI_TARGET_ACTIVE() // (BSY), REQ, MSG, CD, IO output turned on // if(isHigh(gpio_read(ATN))) {