Separate nrf52/cm4 interrupt handling
This commit is contained in:
26
src/platform/cm4/InterruptHandler.cc
Normal file
26
src/platform/cm4/InterruptHandler.cc
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user