59 #define PRINTF(...) printf(__VA_ARGS__)
68 PRINTF(
"rtimer_arch_init() ");
75 T1CTL = (T1DIV1 | T1MODE0);
76 PRINTF(
"T1CTL=0x%02x\n", T1CTL);
79 PRINTF(
"IEN1_T1IE=0x%02x\n", IEN1_T1IE);
82 T1CCTL1 = T1MODE + T1IM;
83 PRINTF(
"T1CCTL1=0x%02x\n", T1CCTL1);
87 PRINTF(
"TIMIF=0x%02x\n", TIMIF);
95 PRINTF(
"rtimer_arch_schedule(%u)\n", t);
98 T1CC1L = (
unsigned char)t;
99 T1CC1H = (
unsigned char)(t >> 8);
100 PRINTF(
"T1CC1=%u, t=%u\n", (T1CC1L + (T1CC1H << 8)), t);
103 PRINTF(
"T1CTL=0x%02x\n", T1CTL);
108 #if CC_CONF_OPTIMIZE_STACK_SIZE
112 cc2430_timer_1_ISR(
void) __interrupt(T1_VECTOR)
115 ENERGEST_ON(ENERGEST_TYPE_IRQ);
124 ENERGEST_OFF(ENERGEST_TYPE_IRQ);
CC2430 registers header file for CC2430.
void rtimer_arch_init(void)
We don't need to explicitly initialise anything but this routine is required by the API...
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.