Alchemy
Loading...
Searching...
No Matches

irq.h File Reference

The hardware's interrupt sources and the interrupt handler table. More...

Go to the source code of this file.

Macros

#define INTR_FLAG_VBLANK   (1 << IRQ_VBLANK)
#define INTR_FLAG_TIMER3   (1 << IRQ_TIMER3)
#define INTR_FLAG_SERIAL   (1 << IRQ_SERIAL)
#define INTR_FLAG_KEYPAD   (1 << IRQ_KEYPAD)
#define INTR_FLAG_GAMEPAK   (1 << IRQ_GAMEPAK)

Typedefs

typedef void(*) InterruptHandler(void)

Enumerations

enum  {
  IRQ_VBLANK , IRQ_HBLANK , IRQ_VCOUNT , IRQ_TIMER0 ,
  IRQ_TIMER1 , IRQ_TIMER2 , IRQ_TIMER3 , IRQ_SERIAL ,
  IRQ_DMA0 , IRQ_DMA1 , IRQ_DMA2 , IRQ_DMA3 ,
  IRQ_KEYPAD , IRQ_GAMEPAK , IRQ_COUNT
}
 The hardware's interrupt sources: each one's bit number in IE and IF, and its slot in gIrqHandlers. More...

Variables

InterruptHandler gIrqHandlers [IRQ_COUNT]
 The handler the IWRAM dispatcher calls for each interrupt source.
const u32 gRuntime_IrqHandlers [IRQ_COUNT]
 The handlers installed at power-on, copied into gIrqHandlers.
u8 IwramIrqMain []
const u32 IwramIrqModeWord
const u8 IwramRuntime_Rom []
void * gIrqVector

Detailed Description

The hardware's interrupt sources and the interrupt handler table.

Definition in file irq.h.

Macro Definition Documentation

◆ INTR_FLAG_VBLANK

#define INTR_FLAG_VBLANK   (1 << IRQ_VBLANK)

Definition at line 30 of file irq.h.

Referenced by Runtime_InstallIwramAndIrqs().

◆ INTR_FLAG_TIMER3

#define INTR_FLAG_TIMER3   (1 << IRQ_TIMER3)

◆ INTR_FLAG_SERIAL

#define INTR_FLAG_SERIAL   (1 << IRQ_SERIAL)

◆ INTR_FLAG_KEYPAD

#define INTR_FLAG_KEYPAD   (1 << IRQ_KEYPAD)

Definition at line 33 of file irq.h.

Referenced by Runtime_InstallIwramAndIrqs().

◆ INTR_FLAG_GAMEPAK

#define INTR_FLAG_GAMEPAK   (1 << IRQ_GAMEPAK)

Definition at line 34 of file irq.h.

Referenced by Runtime_InstallIwramAndIrqs().

Typedef Documentation

◆ InterruptHandler

typedef void(*) InterruptHandler(void)

Definition at line 36 of file irq.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The hardware's interrupt sources: each one's bit number in IE and IF, and its slot in gIrqHandlers.

Enumerator
IRQ_VBLANK 
IRQ_HBLANK 
IRQ_VCOUNT 
IRQ_TIMER0 
IRQ_TIMER1 
IRQ_TIMER2 
IRQ_TIMER3 
IRQ_SERIAL 
IRQ_DMA0 
IRQ_DMA1 
IRQ_DMA2 
IRQ_DMA3 
IRQ_KEYPAD 
IRQ_GAMEPAK 
IRQ_COUNT 

Definition at line 12 of file irq.h.

Variable Documentation

◆ gIrqHandlers

InterruptHandler gIrqHandlers[IRQ_COUNT]
extern

The handler the IWRAM dispatcher calls for each interrupt source.

Referenced by Runtime_InstallIwramAndIrqs(), Runtime_SetIrqHandler(), and SaveState_InitializeWorkspace().

◆ gRuntime_IrqHandlers

const u32 gRuntime_IrqHandlers[IRQ_COUNT]
extern

The handlers installed at power-on, copied into gIrqHandlers.

Referenced by Runtime_InstallIwramAndIrqs().

◆ IwramIrqMain

u8 IwramIrqMain[]
extern

◆ IwramIrqModeWord

const u32 IwramIrqModeWord
extern

Referenced by Dma_StopAllThenRunHook().

◆ IwramRuntime_Rom

const u8 IwramRuntime_Rom[]
extern

◆ gIrqVector

void* gIrqVector
extern