DMA problem
Posted: Sun Oct 17, 2010 12:12 pm
Im using a function in my game that displays a bitmap as a background.
But when I try to compile I get DMA_CHANNEL undefined.
The headers that I have include are:
Code: Select all
void showBackground() {
dmaCopyHalfWords(DMA_CHANNEL,
reimuBitmap, /* This variable is generated for us by
* grit. */
(uint16 *)BG_BMP_RAM(0), /* Our address for main
* background 3 */
reimuBitmapLen); /* This length (in bytes) is generated
* from grit. */
}
The headers that I have include are:
Any ideas why this is happening?#include <nds.h>
#include <stdio.h>
#include <nds/dma.h>