Skip to content

Commit

Permalink
interrupts: use LCD?_IRQ defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Hecht committed Jan 8, 2024
1 parent aa46cd3 commit 83c09d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ void

// LCD controllers 0 and 1
// NB: Only one of these will be enabled at any time.
if (irq_pending(118)) {
if (irq_pending(LCD0_IRQ)) {
tick_counter++;
LCD0_GINT0 &= ~(1 << 14);
hook_display_vblank();
}
if (irq_pending(119)) {
if (irq_pending(LCD1_IRQ)) {
tick_counter++;
LCD1_GINT0 &= ~(1 << 14);
hook_display_vblank();
Expand Down

0 comments on commit 83c09d1

Please sign in to comment.