#122224 - link12827 - Sat Mar 17, 2007 11:15 pm
I'm relatively new to developing ds homebrew, and I've been following various tutorials. But, I get an error message when using interrupts, saying DISP_SR undeclared
and the actual method:
I'm probably just completely missing something, or doing it wrong, but can anyone help me?
Code: |
C:\Homebrew\Practice>make
main.c arm-eabi-gcc -MMD -MP -MF /c/Homebrew/Practice/build/main.d -g -Wall -O2 -march= armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interw ork -I/c/Homebrew/Practice/include -I/c/devkitPro/libnds/include -I/c/Homebrew/P ractice/build -DARM9 -c /c/Homebrew/Practice/source/main.c -o main.o c:/Homebrew/Practice/source/main.c: In function 'InitInterruptHandler': c:/Homebrew/Practice/source/main.c:51: error: 'DISP_SR' undeclared (first use in this function) c:/Homebrew/Practice/source/main.c:51: error: (Each undeclared identifier is rep orted only once c:/Homebrew/Practice/source/main.c:51: error: for each function it appears in.) make[1]: *** [main.o] Error 1 make: *** [build] Error 2 |
and the actual method:
Code: |
void InitInterruptHandler()
{ REG_IME = 0; IRQ_HANDLER = on_irq; REG_IE = IRQ_VBLANK; REG_IF = ~0; DISP_SR = DISP_VBLANK_IRQ; REG_IME = 1; } |
I'm probably just completely missing something, or doing it wrong, but can anyone help me?