interrupt-receiver.c 418 Bytes
Newer Older
1 2 3 4 5
#include "max32665.h"
#include "tmr.h"
#include "api/common.h"
#include "epicardium.h"

6
void __dispatch_isr(api_int_id_t);
7 8

/* Timer Interrupt used for control char notification */
9
void TMR3_IRQHandler(void)
10
{
11
	TMR_IntClear(MXC_TMR3);
12
	__dispatch_isr(API_CALL_MEM->int_id);
13
	API_CALL_MEM->int_id = (-1);
14
}
15 16 17 18 19 20 21

/* Reset Handler */
void __epic_isr_reset(void)
{
	API_CALL_MEM->int_id = (-1);
	API_CALL_MEM->reset_stub();
}