aaa

C code posted
created at 11 Apr 10:47

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<pre><code class="c">
  // 讓CmdQ中斷不要繼續做下去
    // ECC done handle
    xstRegFM.stFmStatus.field.bmECCErrFlag = 1;
    if(xstRegFM.stECCCtrl.field.bmPipeOn)
    {
        while(!xstRegFM.stFmStatus.field.bmPipeIdle)
        {
            xstRegFM.dwLinkValid = 0;
        }
        xstRegFM.stECCCtrl.field.bmPipeOn = 0;
        xstRegFM.stECCCtrl.field.bmPipeOn = 1;
    }
    else
    {
        while(!xstRegFM.stFmDataRWStatus.field.bmFmEngineBusy)
        {
            xstRegFM.dwLinkValid = 0;
        }
    }

    // CmdQ done handle
    while (!SfrFmCmdqCounterEmpty)
    {
        xstRegFM.dwLinkValid = 0;
    }
</code></pre>
659 Bytes in 4 ms with coderay