33 #include "contiki-net.h"
38 #ifdef CC2420_CONF_SFD_TIMESTAMPS
39 #define CONF_SFD_TIMESTAMPS CC2420_CONF_SFD_TIMESTAMPS
42 #ifndef CONF_SFD_TIMESTAMPS
43 #define CONF_SFD_TIMESTAMPS 0
46 #ifdef CONF_SFD_TIMESTAMPS
47 #include "cc2420-arch-sfd.h"
51 #ifdef __IAR_SYSTEMS_ICC__
52 #pragma vector=CC2420_IRQ_VECTOR
55 interrupt(CC2420_IRQ_VECTOR)
58 cc24240_port1_interrupt(
void)
60 ENERGEST_ON(ENERGEST_TYPE_IRQ);
61 if(cc2420_interrupt()) {
65 ENERGEST_OFF(ENERGEST_TYPE_IRQ);
70 cc2420_arch_init(
void)
75 CC2420_CSN_PORT(DIR) |= BV(CC2420_CSN_PIN);
76 CC2420_VREG_PORT(DIR) |= BV(CC2420_VREG_PIN);
77 CC2420_RESET_PORT(DIR) |= BV(CC2420_RESET_PIN);
79 #if CONF_SFD_TIMESTAMPS
80 cc2420_arch_sfd_init();