Author Topic: Waiting for VBLANK int  (Read 5311 times)

0 Members and 1 Guest are viewing this topic.

Offline Billy1886

  • Newbie
  • *
  • Posts: 3
Waiting for VBLANK int
« on: May 27, 2005, 09:07:17 PM »
Hi there,

I notice from the NDS source that the swiWaitForVblank() function is currently broken.  I've been getting round this with my ARM9 code by waiting for the VCOUNT register to hit 192, which works fine. However this is interferring with my ARM7 code that is trying to read the touchpad and fill in the IPC struct.

I believe the problem stems from the fact that the ARM9 is hogging all the memory bandwith in it's waitVBL loop.

Has the issue with swi... call's been fixed in NDSLIB yet - if not can you suggest a work around for my problem...

Regards


The BillMeister...


Offline davr

  • Full Member
  • ***
  • Posts: 135
    • RorexRobots.com
Re: Waiting for VBLANK int
« Reply #1 on: June 10, 2005, 12:52:00 AM »
swiWaitForVblank() works fine for me, and has for a long time. Maybe you have a really old version of ndslib? are you initializing irq's on the arm9?
Code: [Select]
irqInitHandler(irqDefaultHandler);
irqSet(IRQ_VBLANK, 0);

Offline Billy1886

  • Newbie
  • *
  • Posts: 3
Re: Waiting for VBLANK int
« Reply #2 on: June 23, 2005, 11:59:55 PM »
I'll give that a go cheers, and I'll check out the latest version of NDSLib from the source forge pages.

Cheers

The BillMeister