diff --git a/Core/Src/Components/InterruptReason.hpp b/Core/Src/Components/InterruptReason.hpp new file mode 100644 index 0000000..1ce38d5 --- /dev/null +++ b/Core/Src/Components/InterruptReason.hpp @@ -0,0 +1,15 @@ +/* + * InterruptReason.hpp + * + * Created on: Apr 20, 2024 + * Author: Gabriel + */ + +#ifndef SRC_COMPONENTS_INTERRUPTREASON_HPP_ +#define SRC_COMPONENTS_INTERRUPTREASON_HPP_ + +class InterruptReason { + +}; + +#endif /* SRC_COMPONENTS_INTERRUPTREASON_HPP_ */ diff --git a/Core/Src/Components/Interruptible.hpp b/Core/Src/Components/Interruptible.hpp new file mode 100644 index 0000000..cf6a096 --- /dev/null +++ b/Core/Src/Components/Interruptible.hpp @@ -0,0 +1,18 @@ +/* + * Interruptible.hpp + * + * Created on: Apr 20, 2024 + * Author: Gabriel + */ + +#ifndef SRC_COMPONENTS_INTERRUPTIBLE_HPP_ +#define SRC_COMPONENTS_INTERRUPTIBLE_HPP_ + +#include "InterruptReason.hpp" + +class Interruptible { +public: + virtual void irqHandler(InterruptReason* reason) = 0; +}; + +#endif /* SRC_COMPONENTS_INTERRUPTIBLE_HPP_ */