Select Git revision
interrupt-receiver.c
-
rahix authored
Previously 0 was used but as 0 is also the ID of the reset interrupt, this could lead to weird behaviors. Signed-off-by:
Rahix <rahix@rahix.de>
rahix authoredPreviously 0 was used but as 0 is also the ID of the reset interrupt, this could lead to weird behaviors. Signed-off-by:
Rahix <rahix@rahix.de>
interrupt-receiver.c 306 B
#include "max32665.h"
#include "tmr.h"
#include "api/common.h"
#include "epicardium.h"
void __dispatch_isr(api_int_id_t);
/* Timer Interrupt used for control char notification */
void TMR5_IRQHandler(void)
{
TMR_IntClear(MXC_TMR5);
__dispatch_isr(API_CALL_MEM->int_id);
API_CALL_MEM->int_id = (-1);
}