mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
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.
This commit is contained in:
1 parent
21a9fdf45a
commit
eab8c901cf
1 file changed
+2
-2
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user