From 6ee860971a232d56d750cd69aaf85eff479bf0d5 Mon Sep 17 00:00:00 2001 From: daniel-k Date: Tue, 9 Jan 2018 16:30:17 +0100 Subject: [PATCH] ips/intc: supply methods to use with new IrqPort --- fpga/include/villas/fpga/ips/intc.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fpga/include/villas/fpga/ips/intc.hpp b/fpga/include/villas/fpga/ips/intc.hpp index 919f7ab08..d4ec73e66 100644 --- a/fpga/include/villas/fpga/ips/intc.hpp +++ b/fpga/include/villas/fpga/ips/intc.hpp @@ -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: