Contiki 3.x
rtimer-arch.h
Go to the documentation of this file.
1 /**
2  * \file
3  * Header file for the MKL25Z-specific rtimer code
4  * \author
5  * Graeme Bragg <g.bragg@ecs.soton.ac.uk>
6  */
7 
8 #ifndef RTIMER_ARCH_H_
9 #define RTIMER_ARCH_H_
10 
11 #include <sys/rtimer.h>
12 #include "derivative.h"
13 
14 #include "contiki.h"
15 
16 #if (CLOCK_SETUP == 2)
17  /* If CLOCK_SETUP is 2, the fast interal reference clock is used. Need to account for this. */
18  #define RTIMER_ARCH_SECOND 31250
19 #else
20  #define RTIMER_ARCH_SECOND 32768
21 #endif
22 
23 rtimer_clock_t rtimer_arch_now(void);
24 
25 rtimer_clock_t rtimer_arch_next_trigger(void);
26 
27 #endif /* RTIMER_ARCH_H_ */
Header file for the real-time timer module.
rtimer_clock_t rtimer_arch_now(void)
Returns the current real-time clock time.
Definition: rtimer-arch.c:109
rtimer_clock_t rtimer_arch_next_trigger(void)
Get the time of the next scheduled rtimer trigger.
Definition: rtimer-arch.c:56