contiki/src/isr.c

14 lines
222 B
C
Raw Normal View History

2009-04-20 22:38:45 +00:00
#include "embedded_types.h"
#include "isr.h"
#define reg32(x) (*(volatile uint32_t *)(x))
2009-04-24 19:42:15 +00:00
__attribute__ ((section (".irq")))
__attribute__ ((interrupt("IRQ")))
void irq(void)
2009-04-20 22:38:45 +00:00
{
2009-04-24 20:04:04 +00:00
if(tmr_isr != NULL) {
2009-05-05 20:24:47 +00:00
tmr_isr();
2009-04-24 20:04:04 +00:00
}
2009-04-20 22:38:45 +00:00
}