More cleanup

This commit is contained in:
2023-01-15 17:14:34 +01:00
parent 8742e0ce2d
commit 0476eb7c99
5 changed files with 37 additions and 31 deletions

View File

@@ -34,15 +34,15 @@ namespace JabyEngine {
};
struct Interrupt {
static void enable_all(IOPort<InterruptEnable::UnderlyingType, InterruptEnable>& port) {
static void enable_all(IOPortEx<InterruptEnable>& port) {
port.write({InterruptEnable::with(InterruptEnable::InterruptTypValue.max(), InterruptEnable::UnknownIRQ, InterruptEnable::CommandStartIRQ)});
}
static uint8_t get_type(const IOPort<InterruptFlag::UnderlyingType, InterruptFlag>& port) {
static uint8_t get_type(const IOPortEx<InterruptFlag>& port) {
return port.read().get_value(InterruptFlag::InterruptTypValue);
}
static void ack(IOPort<InterruptFlag::UnderlyingType, InterruptFlag>& port) {
static void ack(IOPortEx<InterruptFlag>& port) {
port.write_range_value(InterruptFlag::InterruptTypValue.max());
}
};