Page 1 of 1

DMA problem

Posted: Sun Oct 17, 2010 12:12 pm
by solano
Im using a function in my game that displays a bitmap as a background.

Code: Select all

void showBackground() {
                     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. */
But when I try to compile I get DMA_CHANNEL undefined.
The headers that I have include are:
#include <nds.h>
#include <stdio.h>
#include <nds/dma.h>
Any ideas why this is happening?

Re: DMA problem

Posted: Sun Oct 17, 2010 11:14 pm
by StevenH
DMA_CHANNEL is not defined anywhere.

You need to supply a number between 0 and 3 IIRC for the DMA_CHANNEL number.