diff options
Diffstat (limited to 'src/linux/internal.h')
-rw-r--r-- | src/linux/internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linux/internal.h b/src/linux/internal.h index b9e77d18..b47426b3 100644 --- a/src/linux/internal.h +++ b/src/linux/internal.h @@ -3,6 +3,10 @@ // Local definitions for micro-controllers running on linux #include <time.h> // struct timespec +#include "autoconf.h" // CONFIG_CLOCK_FREQ + +#define NSECS 1000000000 +#define NSECS_PER_TICK (NSECS / CONFIG_CLOCK_FREQ) // console.c void report_errno(char *where, int rc); |