32#include "dev/cc2520/cc2520.h"
33#include "isr_compat.h"
35extern volatile uint8_t cc2520_sfd_counter;
36extern volatile uint16_t cc2520_sfd_start_time;
37extern volatile uint16_t cc2520_sfd_end_time;
41ISR(TIMERB1, cc2520_timerb1_interrupt)
51 cc2520_sfd_start_time = TBCCR1;
53 cc2520_sfd_counter = 0;
54 cc2520_sfd_end_time = TBCCR1;
59cc2520_arch_sfd_init(
void)
62 CC2520_SFD_PORT(
SEL) = BV(CC2520_SFD_PIN);
65 TBCTL = TBSSEL_1 | TBCLR;
68 TBCCTL1 = CM_3 | CAP | SCS;
#define RTIMER_NOW()
Get the current clock time.