diff options
Diffstat (limited to 'app/project.h')
| -rw-r--r-- | app/project.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/app/project.h b/app/project.h index e2e10c7..8c729d8 100644 --- a/app/project.h +++ b/app/project.h @@ -17,6 +17,11 @@  #include <stdio.h>  #include <errno.h> +#define   TICK_BASE 9000 +#define   TICK_DIV  12000 +#define   TICKS_TO_US(a)  (((a)*TICK_DIV*1000)/TICK_BASE) +#define   MS_TO_TICKS(a) (((a)*1000)/TICKS_TO_US(1)) +  #include "pins.h"  #include "i2c.h" | 
