40 #ifndef RTIMER_ARCH_H_ 41 #define RTIMER_ARCH_H_ 45 #define RTIMER_ARCH_SECOND (4096U*8) 49 #define US_TO_RTIMERTICKS(US) ((US) >= 0 ? \ 50 (((int32_t)(US) * (RTIMER_ARCH_SECOND) + 500000) / 1000000L) : \ 51 ((int32_t)(US) * (RTIMER_ARCH_SECOND) - 500000) / 1000000L) 53 #define RTIMERTICKS_TO_US(T) ((T) >= 0 ? \ 54 (((int32_t)(T) * 1000000L + ((RTIMER_ARCH_SECOND) / 2)) / (RTIMER_ARCH_SECOND)) : \ 55 ((int32_t)(T) * 1000000L - ((RTIMER_ARCH_SECOND) / 2)) / (RTIMER_ARCH_SECOND)) 59 #define RTIMERTICKS_TO_US_64(T) ((uint32_t)(((uint64_t)(T) * 1000000 + ((RTIMER_ARCH_SECOND) / 2)) / (RTIMER_ARCH_SECOND))) rtimer_clock_t rtimer_arch_now(void)
Returns the current real-time clock time.
Header file for the real-time timer module.