contiki/src/isr.c

14 lines
210 B
C
Raw Normal View History

2009-11-04 22:30:18 +00:00
#include "types.h"
2009-04-20 22:38:45 +00:00
#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-11-04 22:30:18 +00:00
if(tmr_isr != 0) {
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
}