diff options
Diffstat (limited to 'accel.c')
-rw-r--r-- | accel.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> @@ -14,11 +16,6 @@ #define LIS302DL_CTRLREG1 0x20 #define LIS302DL_UNUSED1 0x28 -#define sleepwhile(cond) \ - sleep_enable (); \ - while (cond) { sleep_cpu (); } \ - sleep_disable (); - /* the first interrupt is lost */ static volatile bool drdy = true; /* 0, 2 and 4 are zero, as they contain the dummy register’s content */ |