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.35; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.35; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ PA_lib: Interrupt system

Interrupt system


Macros

#define PA_InitVBL()   PA_StartInt(INT_VBLANK, PA_vblFunc)
 Initialise une fonction VBL basique. Très pratique pour l'utilisateur non averti, car met à jour l'OAM (les sprites), les touches, et le stylet... On n'a donc plus besoin d'utiliser PA_UpdateOAM, PA_UpdatePad, PA_UpdateStylus, et PA_UpdateRTC dans ce cas !
#define PA_GetVcount()   (REG_VCOUNT&511)
 Récupérer le numéro de ligne tracée

Fonctions

void PA_ResetInterrupts (void)
 Remise à 0 du système d'interruption. Désactive toutes les interruptions
void PA_StartInt (u8 inter, funcpointer interfunc)
 Initialise une interruption donnée
void PA_StopInt (u8 inter)
 Initialise une interruption donnée
void PA_vblFunc (void)
 Fonction standard du VBL PAlib... Ceci met à jour le pad, le stylet, le RTC... Utilisez cette fonction si vous faites votre propre VBL...

Description détaillée

Enable VBL, HBL, etc...

Documentation des fonctions

void PA_StartInt u8  inter,
funcpointer  interfunc
 

Initialise une interruption donnée

Paramètres:
inter Initialise une interruption donnée. Utiliser les macros suivantes : 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 Fonction devant etre executée à chaque interruption

void PA_StopInt u8  inter  ) 
 

Initialise une interruption donnée

Paramètres:
inter ARRETER une interruption donnée. Utiliser les macros suivantes : 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...


Généré le Fri Oct 28 23:18:13 2005 pour PA_lib par  doxygen 1.3.9.1
@ 1.1.1.1 log @Initial import of PalibDoc, begin on PAlib0.64b @ text @@