34#include "isr_compat.h"
36extern volatile uint8_t cc2420_sfd_counter;
37extern volatile uint16_t cc2420_sfd_start_time;
38extern volatile uint16_t cc2420_sfd_end_time;
42ISR(TIMERB1, cc2420_timerb1_interrupt)
52 cc2420_sfd_start_time = TBCCR1;
54 cc2420_sfd_counter = 0;
55 cc2420_sfd_end_time = TBCCR1;
60cc2420_arch_sfd_init(
void)
63 CC2420_SFD_PORT(
SEL) = BV(CC2420_SFD_PIN);
66 TBCTL = TBSSEL_1 | TBCLR;
69 TBCCTL1 = CM_3 | CAP | SCS;
CC2420 driver header file.
#define RTIMER_NOW()
Get the current clock time.