Fixes for FMC interface corruption
[SCSI2SD-V6.git] / src / firmware / scsiPhy.c
index a883dd5a2c89d578ece62961bf62a897fb7324cf..df1ebc308cb3d34fe9aeea8471371899f1d68d5c 100755 (executable)
@@ -122,12 +122,12 @@ scsiReadByte(void)
 \r
        // Ready immediately. setDataCount resets fifos\r
 \r
-       __disable_irq();\r
+       //__disable_irq();\r
        while (!scsiPhyComplete() && likely(!scsiDev.resetFlag))\r
        {\r
-               __WFI(); // Wait for interrupt\r
+               //__WFI(); // Wait for interrupt\r
        }\r
-       __enable_irq();\r
+       //__enable_irq();\r
 \r
        uint8_t val = scsiPhyRx();\r
        // TODO scsiDev.parityError = scsiDev.parityError || SCSI_Parity_Error_Read();\r
@@ -347,12 +347,12 @@ scsiWriteByte(uint8_t value)
        scsiSetDataCount(1);\r
        scsiPhyTx(value);\r
 \r
-       __disable_irq();\r
+       //__disable_irq();\r
        while (!scsiPhyComplete() && likely(!scsiDev.resetFlag))\r
        {\r
-               __WFI();\r
+               //__WFI();\r
        }\r
-       __enable_irq();\r
+       //__enable_irq();\r
 }\r
 \r
 void\r