36 PROCESS(test_ctimer_process,
"Callback timer test process");
37 AUTOSTART_PROCESSES(&test_ctimer_process);
39 static struct ctimer ct;
40 static uint16_t counter = 0;
46 printf(
"Callback function called at time %lu (counter=%i)\n",
clock_time(), counter);
54 printf(
"Starting callback timer test process (counter=%i)\n", counter);
#define PROCESS(name, strname)
Declare a process.
#define PROCESS_BEGIN()
Define the beginning of a process.
#define PROCESS_END()
Define the end of a process.
#define CLOCK_SECOND
A second, measured in system clock time.
Header file for the callback timer
void ctimer_set(struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr)
Set a callback timer.
clock_time_t clock_time(void)
Get the current clock time.
PROCESS_THREAD(cc2538_rf_process, ev, data)
Implementation of the cc2538 RF driver process.