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 | ||
---|---|---|
191 | 191 | dma_setup(bufs[0], nibbles); |
192 | 192 | |
193 | 193 | while (1) { |
194 | int j; | |
195 | ||
196 | 194 | MSC_STRPCL = MSC_STRPCRL_START_OP; |
197 | 195 | |
198 | 196 | MSC_CLKRT = fast_clk->clkrt; |
199 | 197 | MSCCDR = 0; |
200 | 198 | |
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)); | |
209 | 200 | |
210 | 201 | IN(UBB_CMD); |
211 | 202 |
Branches:
master