Add Interruptible and InterruptReason

This commit is contained in:
2024-06-22 22:15:55 -03:00
parent 3601b3ae20
commit 4da6d668dc
2 changed files with 33 additions and 0 deletions

View File

@@ -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_ */

View File

@@ -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_ */