19#define DRIFT_FP_BITS 17U
20#define DRIFT_INT_MASK (((1U << (32 - DRIFT_FP_BITS)) - 1) << DRIFT_FP_BITS)
21#define DRIFT_FRAC_MASK ((1U << DRIFT_FP_BITS) - 1)
22#define DRIFT_ONE (1U << DRIFT_FP_BITS)
23#define TIME_BETWEEN_SYNC_US 2000000U
25static const int DRIFT_FP_FACTOR = 1 << DRIFT_FP_BITS;
26static const int TIME_BETWEEN_SYNC_INT = TIME_BETWEEN_SYNC_US;
27static const int DRIFT_HALF = 1 << (DRIFT_FP_BITS - 1);