osd-contiki/src/isr.c

14 lines
210 B
C
Raw Normal View History

2009-11-04 23:30:18 +01:00
#include "types.h"
2009-04-21 00:38:45 +02:00
#include "isr.h"
#define reg32(x) (*(volatile uint32_t *)(x))
2009-04-24 21:42:15 +02:00
__attribute__ ((section (".irq")))
__attribute__ ((interrupt("IRQ")))
void irq(void)
2009-04-21 00:38:45 +02:00
{
2009-11-04 23:30:18 +01:00
if(tmr_isr != 0) {
2009-05-05 22:24:47 +02:00
tmr_isr();
2009-04-24 22:04:04 +02:00
}
2009-04-21 00:38:45 +02:00
}