DMA problem

support for the ARM toolchain
Post Reply
Posts: 9
Joined: Fri Oct 15, 2010 8:45 am

DMA problem

Post by solano » Sun Oct 17, 2010 12:12 pm

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?

Posts: 133
Joined: Sun Feb 22, 2009 7:59 pm

Re: DMA problem

Post by StevenH » Sun Oct 17, 2010 11:14 pm

DMA_CHANNEL is not defined anywhere.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests