58 #define RT_MODE_COMPARE() do { T1CCTL1 |= T1CCTL_MODE; } while(0)
59 #define RT_MODE_CAPTURE() do { T1CCTL1 &= ~T1CCTL_MODE; } while(0)
70 T1CTL = (T1CTL_DIV1 | T1CTL_MODE0);
75 T1CCTL1 = T1CCTL_MODE | T1CCTL_IM;
90 T1CC1L = (
unsigned char)t;
91 T1CC1H = (
unsigned char)(t >> 8);
101 #if CC_CONF_OPTIMIZE_STACK_SIZE
108 ENERGEST_ON(ENERGEST_TYPE_IRQ);
111 T1STAT &= ~T1STAT_CH1IF;
112 T1CCTL1 &= ~T1CCTL_IM;
116 ENERGEST_OFF(ENERGEST_TYPE_IRQ);
void rtimer_arch_init(void)
We don't need to explicitly initialise anything but this routine is required by the API...
void rtimer_isr()
The rtimer ISR.
Definitions for TI/Chipcon cc2530, cc2531 and cc2533 SFR registers.
Header file with definitions of bit masks for some cc2530 SFRs
Header file for the energy estimation mechanism
Header file for the real-time timer module.
void rtimer_arch_schedule(rtimer_clock_t t)
Schedules an rtimer task to be triggered at time t.
void rtimer_run_next(void)
Execute the next real-time task and schedule the next task, if any.