2009-07-11 16:22:45 +02:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* Header file for the AT91SAM7S-specific rtimer code
|
|
|
|
* \author
|
|
|
|
* Simon Berg <ksb@users.sourceforge.net>
|
|
|
|
*/
|
|
|
|
|
2013-11-24 16:57:08 +01:00
|
|
|
#ifndef RTIMER_ARCH_H_
|
|
|
|
#define RTIMER_ARCH_H_
|
2009-07-11 16:22:45 +02:00
|
|
|
|
|
|
|
#include "sys/rtimer.h"
|
|
|
|
|
|
|
|
#define RTIMER_ARCH_TIMER_ID AT91C_ID_TC1
|
|
|
|
#define RTIMER_ARCH_TIMER_BASE AT91C_BASE_TC1
|
|
|
|
|
|
|
|
#define RTIMER_ARCH_SECOND (MCK/1024)
|
|
|
|
|
|
|
|
void rtimer_arch_set(rtimer_clock_t t);
|
|
|
|
|
|
|
|
rtimer_clock_t rtimer_arch_now(void);
|
|
|
|
|
2013-11-24 16:57:08 +01:00
|
|
|
#endif /* RTIMER_ARCH_H_ */
|