diff -r 9857c18c5e64 -r 018d4d63ad3b blackbox/main.h --- a/blackbox/main.h Wed Dec 07 15:56:05 2011 +0100 +++ b/blackbox/main.h Wed Dec 07 16:50:51 2011 +0100 @@ -83,7 +83,8 @@ #define TIMER1_DIVISOR 8 #define VALUE1_7500NS 0.75e-2 #define TIMER1_7500NS (uint16_t)(VALUE1_7500NS * F_CPU/TIMER1_DIVISOR) - +#define VALUE1_500NS 0.5e-3 +#define TIMER1_500NS (uint16_t)((VALUE1_500NS * F_CPU/TIMER1_DIVISOR) + 2) // MEASURE THIS EXACTLY WITH SCOPE #define DDR(x) (*(&x - 1)) // address of data direction register of port x #define PIN(x) (*(&x - 2)) // address of input register of port x