gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > DevkitARM and interrupts

#24688 - DiscoStew - Mon Aug 09, 2004 9:13 pm

This is just a quick question.
I have been thinking of moving my projects to DevKitARM (right now I am using DevKitAdv), but I think I remember reading somewhere on the forums that DevKitARM doesn't support interrupts or some method of using interrupts. Is that true? I was hoping to take advantage of it (my main reason is for using ".incbin" to include files easily. I am using AAS as the main audio library, with interrupt support through "AAS_MultipleInterrupts".
_________________
DS - It's all about DiscoStew

#24690 - dovoto - Mon Aug 09, 2004 11:25 pm

Devkit arm supports interupts. You can either write your own, find a prewritten one, or use the one on devkit.tk. If multiple interupts are required the one on devkit.tk will not work. Also .incbin works just fine in devkitadv last I checked. Good luck with it. I made the switch to devkitarm and I just cut and paste the irq handler from libgba on devkit or the one from Jeffs crt0 on devr.com.
_________________
www.drunkencoders.com

#24694 - DiscoStew - Tue Aug 10, 2004 12:48 am

Thanks, I'll give it a try once I install all the things needed to use DevKitARM. DevKitAdv just isn't getting updated anymore, so it would probably be a good idea to switch over.
_________________
DS - It's all about DiscoStew

#24725 - ravenq - Tue Aug 10, 2004 2:04 pm

The libgba that's also on the DevkitARM site is also great for interrupts. I've just tried it this afternoon, and assigning a function to an interrupt is as simple as doing this:

Code:
SetInterrupt(Int_Timer1, AAS_Timer1InterruptHandler);


This is after 3 additional lines to enable interrupts. That particular example is now how I set up Apex to use the timer 1 interrupt.
_________________
The Game is Nothing.
The Playing of it Everything