1 #include <AT91SAM7S64.h>
2 #include <contiki-conf.h>
6 #include <interrupt-utils.h>
9 cc2420_fifop_interrupt (
void)
20 cc2420_interrupt_fifop_int_init(
void)
22 *AT91C_PIOA_ASR = AT91C_PA30_IRQ1;
23 *AT91C_PIOA_PDR = AT91C_PA30_IRQ1;
24 AT91C_AIC_SMR[AT91C_ID_IRQ1] = AT91C_AIC_SRCTYPE_POSITIVE_EDGE | 4;
25 AT91C_AIC_SVR[AT91C_ID_IRQ1] = (
unsigned long)cc2420_fifop_interrupt;
29 #ifndef __MAKING_DEPS__
31 inline int splhigh(
void)
35 asm(
"mrs %0, CPSR\n\torr r1,%0,#0x80\n\tmsr CPSR_c, r1" :
"=r" (save)::
"r1");
37 #error Must be compiled in ARM mode
42 inline void splx(
int saved)
45 asm(
"msr CPSR_c, %0" ::
"r" (saved));
47 #error Must be compiled in ARM mode