Skip to content

Commit

Permalink
Fixed MCU events (thanks to @SonoSooS).
Browse files Browse the repository at this point in the history
  • Loading branch information
profi200 committed Aug 26, 2020
1 parent e70f80d commit 4b7fe6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/arm11/hardware/lgyfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void LGYFB_init(void)

/*
* Limitations:
* First pattern bit must be 1 and last 0 or it loses sync with the DS/GBA input.
* First pattern bit must be 1 and last 0 (for V-scale) or it loses sync with the DS/GBA input.
*
* Matrix ranges:
* in[-3] -1024-1023 (0xFC00-0x03FF)
Expand Down
6 changes: 3 additions & 3 deletions source/arm11/hardware/mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


static bool g_mcuIrq = false;
static u32 g_events = 0;
static u32 g_mcuEvents = 0;



Expand Down Expand Up @@ -80,7 +80,7 @@ bool MCU_setEventMask(u32 mask)

u32 MCU_getEvents(u32 mask)
{
u32 events = g_events;
u32 events = g_mcuEvents;

if(atomic_load_explicit(&g_mcuIrq, memory_order_relaxed))
{
Expand All @@ -92,7 +92,7 @@ u32 MCU_getEvents(u32 mask)
events |= data;
}

g_mcuIrq = events & ~mask;
g_mcuEvents = events & ~mask;

return events & mask;
}
Expand Down

0 comments on commit 4b7fe6a

Please sign in to comment.