Contiki 2.5
rtimer-arch.h
Go to the documentation of this file.
1 /**
2  * \file
3  * Header file for the AT91SAM7S-specific rtimer code
4  * \author
5  * Simon Berg <ksb@users.sourceforge.net>
6  */
7 
8 #ifndef __RTIMER_ARCH_H__
9 #define __RTIMER_ARCH_H__
10 
11 #include "sys/rtimer.h"
12 
13 #define RTIMER_ARCH_TIMER_ID AT91C_ID_TC1
14 #define RTIMER_ARCH_TIMER_BASE AT91C_BASE_TC1
15 
16 #define RTIMER_ARCH_SECOND (MCK/1024)
17 
18 void rtimer_arch_set(rtimer_clock_t t);
19 
20 rtimer_clock_t rtimer_arch_now(void);
21 
22 #endif /* __RTIMER_ARCH_H__ */