mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
explicitly list each enum value in interrupts
This commit is contained in:
parent
6b78a99211
commit
b33cde9f63
|
@ -1,20 +1,20 @@
|
||||||
use crate::memory_mapped::MemoryMapped;
|
use crate::memory_mapped::MemoryMapped;
|
||||||
|
|
||||||
pub enum Interrupt {
|
pub enum Interrupt {
|
||||||
VBlank,
|
VBlank = 0,
|
||||||
HBlank,
|
HBlank = 1,
|
||||||
VCounter,
|
VCounter = 2,
|
||||||
Timer0,
|
Timer0 = 3,
|
||||||
Timer1,
|
Timer1 = 4,
|
||||||
Timer2,
|
Timer2 = 5,
|
||||||
Timer3,
|
Timer3 = 6,
|
||||||
Serial,
|
Serial = 7,
|
||||||
Dma0,
|
Dma0 = 8,
|
||||||
Dma1,
|
Dma1 = 9,
|
||||||
Dma2,
|
Dma2 = 10,
|
||||||
Dma3,
|
Dma3 = 11,
|
||||||
Keypad,
|
Keypad = 12,
|
||||||
Gamepak,
|
Gamepak = 13,
|
||||||
}
|
}
|
||||||
|
|
||||||
const ENABLED_INTERRUPTS: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x04000200) };
|
const ENABLED_INTERRUPTS: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x04000200) };
|
||||||
|
|
Loading…
Reference in a new issue