head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 PAlibDoc:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.11.02.08.30.25; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.25; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ PA_lib: Interrupt system

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 Fri Oct 28 23:16:51 2005 for PA_lib by  doxygen 1.3.9.1
@ 1.1.1.1 log @Initial import of PalibDoc, begin on PAlib0.64b @ text @@