Separate nrf52/cm4 interrupt handling

This commit is contained in:
Thomas Klaehn
2020-04-10 08:14:36 +02:00
parent a1c89c96d5
commit 3f379122db
17 changed files with 192 additions and 78 deletions

View File

@@ -0,0 +1,26 @@
#include <assert.h>
#include "platform/cm4/InterruptHandler.h"
#include "platform/cm4/InterruptGuardian.h"
using namespace pinetime::platform::cm4;
InterruptHandler::InterruptHandler(uint32_t irq_nr)
{
InterruptGuardian::instance.register_handler(static_cast<InterruptGuardian::Cm4IrqN>(irq_nr), *this);
}
void InterruptHandler::handle()
{
assert(false);
}
void InterruptHandler::enable()
{
assert(false);
}
void InterruptHandler::disable()
{
assert(false);
}