This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| void | x313_dma_start (void) |
| Start ETRAX DMA for the compressor. | |
| int | x313_dma_stop (void) |
| Stop ETRAX DMA for the compressor. | |
| unsigned long | x313_dma_init (void) |
| Using external dma 3 (input) with dma channel 9. | |
| int | x313_is_dma_on (void) |
| tests if ETRAX DMA (for the FPGA compressor) is running | |
| unsigned long x313_dma_init | ( | void | ) |
Using external dma 3 (input) with dma channel 9.
dma channel 9 allocated for ext dma 3
setup source of hsh0, shs1
just in case - turn hsh0 off
make hsh1 DACK
Configure ext DMA 3
DMA configuration (bit 0 - enable, bit 1 - stop) - stopped
DMABufferLength = 0;
x313_dma_reset_jpeg();
| void x313_dma_start | ( | void | ) |
Start ETRAX DMA for the compressor.
need to restore pointers after previous stop DMA - maybe later move there?
DMA_CHUNK==0x4000
last descriptor
not the last one
TODO: does flush here IS IT STILL NEEDED HERE?
NOTE: needs to be here (not in x313_dma_init) - word width is reset by channel reset !!!
32-bit transfers
point to the beginning of the buffer?
need this also?
updated
enable DMA in JPEG mode - now it is always JPEG (no raw DMA mode)
| int x313_dma_stop | ( | void | ) |
| int x313_is_dma_on | ( | void | ) |
1.5.1