Add interrupt handling
This commit is contained in:
16
interfaces/interrupt_interface.h
Normal file
16
interfaces/interrupt_interface.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __INTERFACES_INTERRUPT_INTERFACE_H__
|
||||
#define __INTERFACES_INTERRUPT_INTERFACE_H__
|
||||
|
||||
namespace pinetime::interfaces {
|
||||
|
||||
class InterruptInterface
|
||||
{
|
||||
public:
|
||||
virtual void handle() = 0;
|
||||
virtual void enable() = 0;
|
||||
virtual void disable() = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user