1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

ips/intc: supply methods to use with new IrqPort

This commit is contained in:
daniel-k 2018-01-09 16:30:17 +01:00
parent c710a95352
commit 6ee860971a

View file

@ -49,7 +49,13 @@ public:
bool start();
int enableInterrupt(IrqMaskType mask, bool polling);
int enableInterrupt(IrqPort irq, bool polling)
{ return enableInterrupt(1 << irq.num, polling); }
int disableInterrupt(IrqMaskType mask);
int disableInterrupt(IrqPort irq)
{ return disableInterrupt(1 << irq.num); }
uint64_t waitForInterrupt(int irq);
private: