examples/zolertia/tutorial/01-basics/03-timers.c
static void
rtimer_callback_example(struct rtimer *timer, void *ptr)
{
  uint32_t *rtimer_ticks = ptr;
  printf("rtimer, now: \t%ld\n", *rtimer_ticks);

  /* We can restart the ctimer and keep the counting going */
  (*rtimer_ticks)++;
  ctimer_restart(&ct);
}
/*---------------------------------------------------------------------------*/
/* This is an example of functions called by the rtimer real-time timer.  Notice
 * the argument of the function is "void *ptr", meaning you can pass any type
 * of data as pointer
 */
This is an example of functions called by the rtimer real-time timer.  Notice
the argument of the function is "void *ptr", meaning you can pass any type
of data as pointer
This is an example of functions called by the rtimer real - time timer . Notice the argument of the function is " void * ptr " meaning you can pass any type of data as pointer
static void
rtimer_callback_example(struct rtimer *timer, void *ptr)
{
  uint32_t *rtimer_ticks = ptr;
  printf("rtimer, now: \t%ld\n", *rtimer_ticks);
  (*rtimer_ticks)++;
  ctimer_restart(&ct);
}
static void rtimer_callback_example ( struct rtimer * timer , void * ptr ) { uint32_t * rtimer_ticks = ptr ; printf ( " \t \n " , * rtimer_ticks ) ; ( * rtimer_ticks ) ++ ; ctimer_restart ( & ct ) ; }
This is an example of functions called by the rtimer real-time timer.
This is an example of functions called by the rtimer real - time timer .
/* We can restart the ctimer and keep the counting going */