GB Timer: Fix priorties on events

This commit is contained in:
Vicki Pfau 2021-11-13 20:44:07 -08:00
parent 858267da3f
commit e60f0660a4
1 changed files with 2 additions and 2 deletions

View File

@ -61,11 +61,11 @@ void GBTimerReset(struct GBTimer* timer) {
timer->event.context = timer;
timer->event.name = "GB Timer";
timer->event.callback = _GBTimerUpdate;
timer->event.priority = 0x20;
timer->event.priority = 0x21;
timer->irq.context = timer;
timer->irq.name = "GB Timer IRQ";
timer->irq.callback = _GBTimerIRQ;
timer->event.priority = 0x21;
timer->irq.priority = 0x20;
timer->nextDiv = GB_DMG_DIV_PERIOD * 2;
timer->timaPeriod = 1024 >> 4;