31#include "contiki-net.h"
34#include "dev/cc2520/cc2520.h"
35#include "isr_compat.h"
37#ifdef CC2520_CONF_SFD_TIMESTAMPS
38#define CONF_SFD_TIMESTAMPS CC2520_CONF_SFD_TIMESTAMPS
41#ifndef CONF_SFD_TIMESTAMPS
42#define CONF_SFD_TIMESTAMPS 0
45#ifdef CONF_SFD_TIMESTAMPS
46#include "cc2520-arch-sfd.h"
50ISR(CC2520_IRQ, cc2520_port1_interrupt)
52 if(cc2520_interrupt()) {
63 CC2520_CSN_PORT(DIR) |= BV(CC2520_CSN_PIN);
64 CC2520_VREG_PORT(DIR) |= BV(CC2520_VREG_PIN);
65 CC2520_RESET_PORT(DIR) |= BV(CC2520_RESET_PIN);
67 CC2520_FIFOP_PORT(DIR) &= ~(BV(CC2520_FIFOP_PIN));
68 CC2520_FIFO_PORT(DIR) &= ~(BV(CC2520_FIFO_PIN));
69 CC2520_CCA_PORT(DIR) &= ~(BV(CC2520_CCA_PIN));
70 CC2520_SFD_PORT(DIR) &= ~(BV(CC2520_SFD_PIN));
72#if CONF_SFD_TIMESTAMPS
73 cc2520_arch_sfd_init();