From eab8c901cf7aa71ee798a891392bf780a3354e80 Mon Sep 17 00:00:00 2001 From: d00f <8052722+DrDoof@users.noreply.github.com> Date: Tue, 8 Sep 2026 22:43:06 +0200 Subject: [PATCH] Fix the EXIF bit numbers in the ext2 and ext3 handler comments 0xef clears bit 4 (IE2) and 0xdf clears bit 5 (IE3). The comments said 7 and 6. --- rtlplayground.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtlplayground.c b/rtlplayground.c index f4228e27..ee5cd1fc 100644 --- a/rtlplayground.c +++ b/rtlplayground.c @@ -515,7 +515,7 @@ void isr_ext1(void) __interrupt(2) */ void isr_ext2(void) __interrupt(8) { - EXIF &= 0xef; // Clear IRQ flag (bit 7) in EXIF + EXIF &= 0xef; // Clear IRQ flag IE2 (bit 4) in EXIF } /* @@ -524,7 +524,7 @@ void isr_ext2(void) __interrupt(8) */ void isr_ext3(void) __interrupt(9) { - EXIF &= 0xdf; // Clear IRQ flag (bit 6) in EXIF + EXIF &= 0xdf; // Clear IRQ flag IE3 (bit 5) in EXIF } // Timer2: handles system tick.