diff options
Diffstat (limited to 'gyro.c')
-rw-r--r-- | gyro.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,3 +1,5 @@ +#include "common.h" + #include <stdio.h> #include <string.h> #include <avr/io.h> @@ -27,11 +29,6 @@ #define L3GD20_CTRLREG3 0x22 #define L3GD20_CTRLREG4 0x23 -#define sleepwhile(cond) \ - sleep_enable (); \ - while (cond) { sleep_cpu (); } \ - sleep_disable (); - /* the first interrupt is lost */ static volatile bool drdy = true; static volatile int16_t val[3] = {0, 0, 0}; |