do DMA from SDRAM to SDRAM

This commit is contained in:
Markus Fröschle
2013-11-10 19:47:42 +00:00
parent 0c1ea5b610
commit edad78b6e6

View File

@@ -119,7 +119,7 @@ int dma_init(void)
xprintf("DMA API version %d.%d initialized. Tasks are at %p\r\n", version / 0xff, version % 0xff, SYS_SRAM);
// test
dma_memcpy((void *) 0x10000, (void *) 0xe0000000, 0x00100000); /* copy one megabyte of flash to RAM */
dma_memcpy((void *) 0x10000, (void *) 0x03e00000, 0x00100000); /* copy one megabyte of flash to RAM */
xprintf("DMA finished\r\n");
return 0;