mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
a9ca75c98b
Also move Keyboard to a class implementation using this pattern.
21 lines
312 B
C++
21 lines
312 B
C++
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
class IRQHandler {
|
|
public:
|
|
virtual ~IRQHandler();
|
|
virtual void handleIRQ() = 0;
|
|
|
|
byte irqNumber() const { return m_irqNumber; }
|
|
|
|
void enableIRQ();
|
|
void disableIRQ();
|
|
|
|
protected:
|
|
explicit IRQHandler(byte irq);
|
|
|
|
private:
|
|
byte m_irqNumber { 0 };
|
|
};
|
|
|