Commit c2e55263 authored by Matthieu Cattin's avatar Matthieu Cattin

many: Change interrupt scheme, now uses two stages (eic + vic).

parent e1613c48
......@@ -124,8 +124,10 @@ class CGN4124:
# Wait for interrupt
def wait_irq(self, verbose=False):
if verbose:
print("[GN4124] Waiting IRQ...")
print("[GN4124] Waiting interrupt...")
ret = self.bus.irqwait()
if verbose:
print("[GN4124] Interrupt occured")
# re-enable the interrupt
self.bus.irqena()
return ret
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment