TSCH: use RTIMER_CLOCK_DIFF to compute estimated drift, fixing a bug that would occur on 16-bit rtimer platforms
This commit is contained in:
parent
5b5f07ba52
commit
bb5e5d5c6b
14 changed files with 24 additions and 22 deletions
|
@ -46,7 +46,7 @@ typedef uint32_t clock_time_t;
|
|||
typedef uint16_t uip_stats_t;
|
||||
|
||||
typedef uint32_t rtimer_clock_t;
|
||||
#define RTIMER_CLOCK_LT(a, b) ((int32_t)((a) - (b)) < 0)
|
||||
#define RTIMER_CLOCK_DIFF(a, b) ((int32_t)((a) - (b)))
|
||||
rtimer_clock_t rtimer_arch_now(void);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue