Add HZ_TO_NS macro

This commit is contained in:
Daniel Ribeiro 2011-01-10 15:14:26 -02:00
parent c2616fb9fa
commit 3677f3ec3f
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@
#define MHZ(n) ((n) * 1000000)
#define GHZ(n) ((n) * 1000000000)
#define HZ_TO_NS(n) (1000000000 / (n))
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#endif