From 24d11d4976062e965fb64861808548c39f53714b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 10 Mar 2014 17:30:31 +0100 Subject: Add common.h --- gyro.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gyro.c') diff --git a/gyro.c b/gyro.c index d6a8b48..bbcb0fe 100644 --- a/gyro.c +++ b/gyro.c @@ -1,3 +1,5 @@ +#include "common.h" + #include #include #include @@ -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}; -- cgit v1.2.3