Date:2013-01-30 05:51:12 (11 years 1 month ago)
Author:Werner Almesberger
Commit:760e8a893a44db73cc958eb281403dadf893960e
Message:ubb-la/ubb-la.c (xfers): revert to "safe" end-of-command synchronization

This seems to be the best compromise between stability and performance.
Files: ubb-la/ubb-la.c (1 diff)

Change Details

ubb-la/ubb-la.c
191191    dma_setup(bufs[0], nibbles);
192192
193193    while (1) {
194        int j;
195
196194        MSC_STRPCL = MSC_STRPCRL_START_OP;
197195
198196        MSC_CLKRT = fast_clk->clkrt;
199197        MSCCDR = 0;
200198
201        /*
202         * Experimental value for 12 MSa/s with speedup to 84 MSa/s:
203         * hangs often with 29 cycles, hangs never (so far) with 30.
204         */
205        for (j = 0; j != 30; j++) asm volatile ("");
206
207// while (MSC_STAT & MSC_STAT_DATA_FIFO_EMPTY);
208// while (!(MSC_STAT & MSC_STAT_END_CMD_RES));
199        while (!(MSC_STAT & MSC_STAT_END_CMD_RES));
209200
210201        IN(UBB_CMD);
211202

Archive Download the corresponding diff file

Branches:
master



interactive