mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/videomixer: use new DMA engine
This commit is contained in:
parent
29efa85dec
commit
b3d87e1c79
1 changed files with 4 additions and 4 deletions
|
@ -26,12 +26,12 @@ static void print_status(void)
|
|||
|
||||
static void capture_fb(void)
|
||||
{
|
||||
dvisampler0_dma_base_write((unsigned int)framebuffer);
|
||||
dvisampler0_dma_length_write(sizeof(framebuffer));
|
||||
dvisampler0_dma_shoot_write(1);
|
||||
dvisampler0_dma_frame_size_write(sizeof(framebuffer));
|
||||
dvisampler0_dma_slot0_address_write((unsigned int)framebuffer);
|
||||
dvisampler0_dma_slot0_status_write(1);
|
||||
|
||||
printf("waiting for DMA...");
|
||||
while(dvisampler0_dma_busy_read());
|
||||
while(dvisampler0_dma_slot0_status_read() != 2);
|
||||
printf("done\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue