summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6aebe0e)
extern volatile ticks_t _clock;
extern volatile ticks_t _clock;
+#define TIMER_AFTER(x, y) ((long)(y) - (long)(x) < 0)
+#define TIMER_BEFORE(x, y) TIMER_AFTER(y, x)
+
/**
* \brief Return the system tick counter (expressed in ticks)
*
/**
* \brief Return the system tick counter (expressed in ticks)
*
#if CONFIG_TIMER_EVENTS
#include <drv/timer.h> /* timer_clock() */
#if CONFIG_TIMER_EVENTS
#include <drv/timer.h> /* timer_clock() */
-/* TODO: move these macros to drv/timer.h */
-#define TIMER_AFTER(x, y) ((long)(y) - (long)(x) < 0)
-#define TIMER_BEFORE(x, y) TIMER_AFTER(y, x)
-
/**
* Wait the completion of event \a e or \a timeout elapses.
*
/**
* Wait the completion of event \a e or \a timeout elapses.
*