Interrupt system


Defines

#define PA_InitVBL()   PA_StartInt(INT_VBLANK, PA_vblFunc)
 Intiate a basic VBL function. Very usefull for unexperienced users, it updates the OAM (sprites), the Keypad, and the Stylus input every frame. No need to use PA_UpdateOAM, PA_UpdatePad, PA_UpdateStylus, and PA_UpdateRTC !
#define PA_GetVcount()   (REG_VCOUNT&511)
 Get the vertical line count...

Functions

void PA_ResetInterrupts (void)
 Reset the interrupt system. Disables all interrupts.
void PA_StartInt (u8 inter, funcpointer interfunc)
 Initiate a given interrupt.
void PA_StopInt (u8 inter)
 Initiate a given interrupt.
void PA_vblFunc (void)
 The standard PAlib VBL function... This will update the pad, the stylus, the RTC, etc... You could/should use this function if you do your own custom VBL...

Detailed Description

Enable VBL, HBL, etc...

Function Documentation

void PA_StartInt u8  inter,
funcpointer  interfunc
 

Initiate a given interrupt.

Parameters:
inter Interrupt to initiate. Use the following macros to chose : INT_VBLANK, INT_HBLANK, INT_VCOUNT, INT_TIMER0, INT_TIMER1, INT_TIMER2, INT_TIMER3, INT_COM, INT_DMA0, INT_DMA1, INT_DMA2, INT_DMA3, INT_KEY, INT_CART...
interfunc Function to be executed at each interruptiono

void PA_StopInt u8  inter  ) 
 

Initiate a given interrupt.

Parameters:
inter Interrupt to STOP. Use the following macros to chose : INT_VBLANK, INT_HBLANK, INT_VCOUNT, INT_TIMER0, INT_TIMER1, INT_TIMER2, INT_TIMER3, INT_COM, INT_DMA0, INT_DMA1, INT_DMA2, INT_DMA3, INT_KEY, INT_CART...


Generated on Thu Feb 9 15:37:41 2006 for PAlib by  doxygen 1.3.9.1