Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 67605ec

Browse files
author
IgnoreWarnings
committed
add virtual to IntrerruptController methods
1 parent 957378e commit 67605ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/villas/fpga/ips/intc.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ class InterruptController : public Core {
2727
virtual
2828
bool init() override;
2929

30-
bool enableInterrupt(IrqMaskType mask, bool polling);
31-
bool enableInterrupt(IrqPort irq, bool polling)
30+
virtual bool enableInterrupt(IrqMaskType mask, bool polling);
31+
virtual bool enableInterrupt(IrqPort irq, bool polling)
3232
{
3333
return enableInterrupt(1 << irq.num, polling);
3434
}
3535

36-
bool disableInterrupt(IrqMaskType mask);
37-
bool disableInterrupt(IrqPort irq)
36+
virtual bool disableInterrupt(IrqMaskType mask);
37+
virtual bool disableInterrupt(IrqPort irq)
3838
{
3939
return disableInterrupt(1 << irq.num);
4040
}
4141

42-
int waitForInterrupt(int irq);
43-
int waitForInterrupt(IrqPort irq)
42+
virtual int waitForInterrupt(int irq);
43+
virtual int waitForInterrupt(IrqPort irq)
4444
{
4545
return waitForInterrupt(irq.num);
4646
}

0 commit comments

Comments
 (0)