Fix USB bug with > 4gb drives
[SCSI2SD-V6.git] / src / firmware / scsiPhy.c
index 739b21df68792cebd1ffca9c10a0f832d7f66aab..5463968a1dea17db8e4ad20a5a715b689483e5c1 100755 (executable)
@@ -21,7 +21,6 @@
 \r
 #include "scsi.h"\r
 #include "scsiPhy.h"\r
-#include "trace.h"\r
 #include "time.h"\r
 #include "fpga.h"\r
 #include "led.h"\r
@@ -115,8 +114,6 @@ uint8_t scsiPhyFifoSel = 0; // global
 // vector table.\r
 void EXTI4_IRQHandler()\r
 {\r
-       traceIrq(trace_scsiResetISR);\r
-\r
        // Make sure that interrupt flag is set\r
        if (__HAL_GPIO_EXTI_GET_IT(GPIO_PIN_4) != RESET) {\r
 \r
@@ -164,7 +161,6 @@ scsiReadByte(void)
 #endif\r
        scsiSetDataCount(1);\r
 \r
-       trace(trace_spinPhyRxFifo);\r
        while (!scsiPhyComplete() && likely(!scsiDev.resetFlag))\r
        {\r
                __WFE(); // Wait for event\r
@@ -203,7 +199,6 @@ scsiReadDMA(uint8_t* data, uint32_t count)
 {\r
        // Prepare DMA transfer\r
        dmaInProgress = 1;\r
-       trace(trace_doRxSingleDMA);\r
 \r
        scsiTxDMAComplete = 1; // TODO not used much\r
        scsiRxDMAComplete = 0; // TODO not used much\r
@@ -289,8 +284,6 @@ scsiRead(uint8_t* data, uint32_t count, int* parityError)
                {\r
                        scsiReadDMA(data + i, chunk);\r
 \r
-                       trace(trace_spinReadDMAPoll);\r
-\r
                        while (!scsiReadDMAPoll() && likely(!scsiDev.resetFlag))\r
                        {\r
                        };\r
@@ -323,13 +316,11 @@ scsiWriteByte(uint8_t value)
                assertFail();\r
        }\r
 #endif\r
-       trace(trace_spinPhyTxFifo);\r
        scsiPhyTx(value);\r
        scsiPhyFifoFlip();\r
 \r
        scsiSetDataCount(1);\r
 \r
-       trace(trace_spinTxComplete);\r
        while (!scsiPhyComplete() && likely(!scsiDev.resetFlag))\r
        {\r
                __WFE(); // Wait for event\r
@@ -358,7 +349,6 @@ scsiWriteDMA(const uint8_t* data, uint32_t count)
 {\r
        // Prepare DMA transfer\r
        dmaInProgress = 1;\r
-       trace(trace_doTxSingleDMA);\r
 \r
        scsiTxDMAComplete = 0;\r
        scsiRxDMAComplete = 1;\r
@@ -418,8 +408,6 @@ scsiWrite(const uint8_t* data, uint32_t count)
                        chunk = chunk & 0xFFFFFFF8;\r
                        scsiWriteDMA(data + i, chunk);\r
 \r
-                       trace(trace_spinReadDMAPoll);\r
-\r
                        while (!scsiWriteDMAPoll() && likely(!scsiDev.resetFlag))\r
                        {\r
                        }\r
@@ -623,10 +611,8 @@ uint32_t s2s_getScsiRateMBs()
 \r
 void scsiPhyReset()\r
 {\r
-       trace(trace_scsiPhyReset);\r
        if (dmaInProgress)\r
        {\r
-               trace(trace_spinDMAReset);\r
                HAL_DMA_Abort(&memToFSMC);\r
                HAL_DMA_Abort(&fsmcToMem);\r
 \r