Reduce lag of repeatedly triggered interrupts a bit

Please tell me if this breaks everything.
This commit is contained in:
beeanyew
2021-06-08 22:23:26 +02:00
parent 7a5036ff51
commit f77e1715a6

View File

@@ -126,11 +126,13 @@ void *ipl_task(void *args) {
value = *(gpio + 13);
if (!(value & (1 << PIN_IPL_ZERO))) {
irq = 1;
old_irq = irq_delay;
//NOP
M68K_END_TIMESLICE;
NOP
if (!irq) {
M68K_END_TIMESLICE;
NOP
irq = 1;
}
//usleep(0);
}
else {