Boot tested

Tested to boot beige G3 and Q700, both with XCVR mode on and off on appropriate hardware
This commit is contained in:
androda 2022-04-15 06:14:59 -06:00
parent b4b0ce711f
commit ceb6da764b
1 changed files with 7 additions and 6 deletions

View File

@ -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))) {