33 #include "contiki-net.h"
37 #ifndef CONF_SFD_TIMESTAMPS
38 #define CONF_SFD_TIMESTAMPS 0
41 #ifdef CONF_SFD_TIMESTAMPS
42 #include "cc2420-arch-sfd.h"
48 interrupt(CC2420_IRQ_VECTOR)
49 cc24240_port1_interrupt(
void)
51 ENERGEST_ON(ENERGEST_TYPE_IRQ);
52 if(cc2420_interrupt()) {
55 ENERGEST_OFF(ENERGEST_TYPE_IRQ);
60 cc2420_arch_init(
void)
65 CC2420_CSN_PORT(DIR) |= BV(CC2420_CSN_PIN);
66 CC2420_VREG_PORT(DIR) |= BV(CC2420_VREG_PIN);
67 CC2420_RESET_PORT(DIR) |= BV(CC2420_RESET_PIN);
69 #if CONF_SFD_TIMESTAMPS
70 cc2420_arch_sfd_init();