Add Interruptible and InterruptReason
This commit is contained in:
15
Core/Src/Components/InterruptReason.hpp
Normal file
15
Core/Src/Components/InterruptReason.hpp
Normal 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_ */
|
||||
18
Core/Src/Components/Interruptible.hpp
Normal file
18
Core/Src/Components/Interruptible.hpp
Normal 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_ */
|
||||
Reference in New Issue
Block a user