diff --git a/cpu/lpc2387/include/lpc2387-rtc.h b/cpu/lpc2387/include/lpc2387-rtc.h index 4fb8f52e51..9420fc7c21 100644 --- a/cpu/lpc2387/include/lpc2387-rtc.h +++ b/cpu/lpc2387/include/lpc2387-rtc.h @@ -51,7 +51,6 @@ and the mailinglist (subscription via web site) #include #include #include "lpc2387.h" -#include "clock.h" /* ------------------------------------------------------------------------- */ /** diff --git a/cpu/lpc2387/lpc2387-rtc.c b/cpu/lpc2387/lpc2387-rtc.c index 7ab60e09c4..ca713833a0 100644 --- a/cpu/lpc2387/lpc2387-rtc.c +++ b/cpu/lpc2387/lpc2387-rtc.c @@ -45,7 +45,6 @@ and the mailinglist (subscription via web site) #include "lpc2387.h" #include "lpc2387-rtc.h" #include "lpm.h" -#include "clock.h" #define PREINT_RTC 0x000001C8 /* Prescaler value, integer portion, PCLK = 15Mhz */ #define PREFRAC_RTC 0x000061C0 /* Prescaler value, fraction portion, PCLK = 15Mhz */ @@ -58,7 +57,6 @@ and the mailinglist (subscription via web site) #define PRINTF(fmt, args...) #endif -extern void _clock_alarm(void); /** * @brief epoch time in hour granularity @@ -155,7 +153,6 @@ void RTC_IRQHandler (void) RTC_AMR = 0xff; // disable alarm irq PRINTF("alarm"); lpm_end_awake(); - _clock_alarm(); } VICVectAddr = 0; // Acknowledge Interrupt diff --git a/sys/include/swtimer.h b/sys/include/swtimer.h index 9f7d9a9730..0cc30f82c0 100644 --- a/sys/include/swtimer.h +++ b/sys/include/swtimer.h @@ -64,14 +64,23 @@ typedef struct swtimer_t { } action; } swtimer_t; +/** + * @brief Current system time + * @return Time in ticks since system boot + */ swtime_t swtimer_now(); +/** + * @brief Initializes swtimer + * @return always 0 + */ int swtimer_init(); /** * @brief set swtimer interval and activate * @param[in] t pointer to preinitialised swtimer_t * @param[in] interval swtimer interval + * @return always 0 */ int swtimer_set(swtimer_t *t, swtime_t interval);