|
@@ -96,7 +96,7 @@ static const uint32_t scsiDbInputOutputPullAnd_PEREG = 0b0000000000000000010101
|
|
|
|
|
|
static ArduinoOutStream cout(Serial);
|
|
|
// HDD image
|
|
|
-uint16_t imageSelect = 0;
|
|
|
+uint8_t imageSelect = 0;
|
|
|
uint16_t board_rev = 0;
|
|
|
HDDIMG img[NUM_SCSIID][NUM_SCSILUN]; // Maximum number
|
|
|
|
|
@@ -303,7 +303,7 @@ void setup()
|
|
|
//Setup GPIO
|
|
|
gpioInit();
|
|
|
|
|
|
- board_rev = digitalRead(BOARD_REV_PIN0) | digitalRead(BOARD_REV_PIN1) << 1 | digitalRead(BOARD_REV_PIN2) << 2;
|
|
|
+ board_rev = digitalRead(BOARD_REV_PIN0) << 1 | digitalRead(BOARD_REV_PIN1) << 2 | digitalRead(BOARD_REV_PIN2) << 3 | 0x01;
|
|
|
|
|
|
SCSI_BUFFERS_IN() ;
|
|
|
|
|
@@ -315,6 +315,7 @@ void setup()
|
|
|
Serial.begin(19200);
|
|
|
delay(3000);
|
|
|
Serial.println("BLACKSASI");
|
|
|
+ Serial.print("Board rev: ");
|
|
|
Serial.println(board_rev);
|
|
|
Serial.flush();
|
|
|
|
|
@@ -441,8 +442,6 @@ void setup()
|
|
|
attachInterrupt(BOARD_SCSI_RST, onBusReset, FALLING);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/*
|
|
|
* Initialization failed, blink 3x fast
|
|
|
*/
|
|
@@ -460,8 +459,6 @@ void onFalseInit(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/*
|
|
|
* Bus reset interrupt.
|
|
|
*/
|
|
@@ -490,8 +487,6 @@ void onBusReset(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/*
|
|
|
* Write with a handshake.
|
|
|
*/
|