Add interrupt handling

This commit is contained in:
Thomas Klaehn
2020-04-08 03:50:13 +02:00
parent 209c09cbf4
commit b93152db8f
6 changed files with 226 additions and 0 deletions

View 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