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

Commit 0fbf5a0

Browse files
author
IgnoreWarnings
committed
add Interrupt Controller for Platform
1 parent 67605ec commit 0fbf5a0

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#pragma once
2+
3+
#include <villas/fpga/ips/intc.hpp>
4+
5+
class PlatformInterruptController
6+
: public villas::fpga::ip::InterruptController {
7+
public:
8+
bool enableInterrupt(InterruptController::IrqMaskType mask,
9+
bool polling) override;
10+
bool enableInterrupt(IrqPort irq, bool polling) override;
11+
};

lib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ set(SOURCES
2424
ips/gpio.cpp
2525
ips/intc.cpp
2626
ips/pcie.cpp
27+
ips/platform_intc.cpp
2728
ips/rtds.cpp
2829
ips/switch.cpp
2930
ips/timer.cpp

lib/ips/platform_intc.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <villas/fpga/ips/platform_intc.hpp>
2+
3+
bool PlatformInterruptController::enableInterrupt(
4+
InterruptController::IrqMaskType mask, bool polling) {
5+
logger->debug("Enabling Platform Interrupt");
6+
};
7+
8+
bool PlatformInterruptController::enableInterrupt(IrqPort irq, bool polling) {
9+
logger->debug("Enabling Platform Interrupt");
10+
};

0 commit comments

Comments
 (0)