From b33cde9f63aa82e2b309d6944c7011a84018e96a Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Mon, 8 Mar 2021 02:06:45 +0000 Subject: [PATCH] explicitly list each enum value in interrupts --- src/interrupt.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/interrupt.rs b/src/interrupt.rs index ab7d4916..57978cea 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -1,20 +1,20 @@ use crate::memory_mapped::MemoryMapped; pub enum Interrupt { - VBlank, - HBlank, - VCounter, - Timer0, - Timer1, - Timer2, - Timer3, - Serial, - Dma0, - Dma1, - Dma2, - Dma3, - Keypad, - Gamepak, + VBlank = 0, + HBlank = 1, + VCounter = 2, + Timer0 = 3, + Timer1 = 4, + Timer2 = 5, + Timer3 = 6, + Serial = 7, + Dma0 = 8, + Dma1 = 9, + Dma2 = 10, + Dma3 = 11, + Keypad = 12, + Gamepak = 13, } const ENABLED_INTERRUPTS: MemoryMapped = unsafe { MemoryMapped::new(0x04000200) };