mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-28 04:38:11 +00:00
tpm2: Remove CLOCK_ defines for header since already in Clock.c
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
1278421db9
commit
79e233c607
@ -73,22 +73,5 @@
|
||||
# include <time.h>
|
||||
# endif
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
||||
// CLOCK_NOMINAL is the number of hardware ticks per mS. A value of 300000 means that the nominal
|
||||
// clock rate used to drive the hardware clock is 30 MHz. The adjustment rates are used to determine
|
||||
// the conversion of the hardware ticks to internal hardware clock value. In practice, we would
|
||||
// expect that there would be a hardware register will accumulated mS. It would be incremented by
|
||||
// the output of a pre-scaler. The pre-scaler would divide the ticks from the clock by some value
|
||||
// that would compensate for the difference between clock time and real time. The code in Clock does
|
||||
// the emulation of this function.
|
||||
#define CLOCK_NOMINAL 30000
|
||||
// A 1% change in rate is 300 counts
|
||||
#define CLOCK_ADJUST_COARSE 300
|
||||
// A 0.1% change in rate is 30 counts
|
||||
#define CLOCK_ADJUST_MEDIUM 30
|
||||
// A minimum change in rate is 1 count
|
||||
#define CLOCK_ADJUST_FINE 1
|
||||
// The clock tolerance is +/-15% (4500 counts) Allow some guard band (16.7%)
|
||||
#define CLOCK_ADJUST_LIMIT 5000
|
||||
#endif // _PLATFORM_CLOCK_H_
|
||||
|
||||
Loading…
Reference in New Issue
Block a user